Fix strata being too high, thanks Jerralish.

This commit is contained in:
UnknownShadow200 2015-12-06 22:34:59 +11:00
parent bbd933aa20
commit bf5d9736af
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<ProjectGuid>{BEB1C785-5CAD-48FF-A886-876BF0A318D4}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<RootNamespace>ClassicalSharp</RootNamespace>
<AssemblyName>ClassicalSharp</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>

View File

@ -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);
}