From bf5d9736af92a086fb4bed00fbcb963315e8369f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 6 Dec 2015 22:34:59 +1100 Subject: [PATCH] Fix strata being too high, thanks Jerralish. --- ClassicalSharp/ClassicalSharp.csproj | 2 +- ClassicalSharp/Generator/NotchyGenerator.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ClassicalSharp/ClassicalSharp.csproj b/ClassicalSharp/ClassicalSharp.csproj index 05076232e..edf094f02 100644 --- a/ClassicalSharp/ClassicalSharp.csproj +++ b/ClassicalSharp/ClassicalSharp.csproj @@ -4,7 +4,7 @@ {BEB1C785-5CAD-48FF-A886-876BF0A318D4} Debug AnyCPU - Exe + WinExe ClassicalSharp ClassicalSharp v2.0 diff --git a/ClassicalSharp/Generator/NotchyGenerator.cs b/ClassicalSharp/Generator/NotchyGenerator.cs index c1f4dd9dc..0980fd7bd 100644 --- a/ClassicalSharp/Generator/NotchyGenerator.cs +++ b/ClassicalSharp/Generator/NotchyGenerator.cs @@ -59,6 +59,7 @@ namespace ClassicalSharp.Generator { double hHigh = n2.Compute( x * 1.3f, z * 1.3f ) / 5 + 6; double height = n3.Compute( x, z ) > 0 ? hLow : Math.Max( hLow, hHigh ); + height *= 0.5; if( height < 0 ) height *= 0.8f; hMap[index++] = (short)(height + waterLevel); }