Skip to content

Commit

Permalink
Fixed another one...
Browse files Browse the repository at this point in the history
  • Loading branch information
bearbin committed Nov 16, 2013
1 parent a319973 commit 5687ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Generating/Noise3DGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void cNoise3DGenerator::GenerateNoiseArray(int a_ChunkX, int a_ChunkZ, NOISE_DAT
// Precalculate a "height" array:
NOISE_DATATYPE Height[DIM_X * DIM_Z]; // Output for the cubic noise heightmap ("source")
m_Cubic.Generate2D(Height, DIM_X, DIM_Z, StartX / 25, EndX / 25, StartZ / 25, EndZ / 25);
for (int i = 0; i < ARRAYCOUNT(Height); i++)
for (unsigned int i = 0; i < ARRAYCOUNT(Height); i++)
{
Height[i] = abs(Height[i]) * m_HeightAmplification + 1;
}
Expand Down

0 comments on commit 5687ca7

Please sign in to comment.