mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 02:56:09 -04:00
Fix strata being too high, thanks Jerralish.
This commit is contained in:
parent
bbd933aa20
commit
bf5d9736af
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user