Permalink
Browse files

Steppy HeiGen: Fixed Linux compilation.

  • Loading branch information...
madmaxoft committed Mar 1, 2015
1 parent 780a9ae commit d2e1ed3a3be0da9244e12740c28f40cd19b9ccab
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Generating/HeiGen.cpp
@@ -59,7 +59,7 @@ class cHeiGenSteppy:
{
int heights[cChunkDef::Width * cChunkDef::Width];
m_Gen->GetInts(a_ChunkX * cChunkDef::Width, a_ChunkZ * cChunkDef::Width, cChunkDef::Width, cChunkDef::Width, heights);
for (auto i = 0; i < ARRAYCOUNT(heights); i++)
for (size_t i = 0; i < ARRAYCOUNT(heights); i++)
{
a_HeightMap[i] = static_cast<HEIGHTTYPE>(std::max(std::min(60 + heights[i], cChunkDef::Height - 60), 40));
}

0 comments on commit d2e1ed3

Please sign in to comment.