diff options
author | Mattes D <github@xoft.cz> | 2015-03-01 12:40:53 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-03-01 12:40:53 +0100 |
commit | d2e1ed3a3be0da9244e12740c28f40cd19b9ccab (patch) | |
tree | 53fba9c7b4136a13c58558fa7dc254fae43ac17a /src/Generating | |
parent | Added Steppy height generator. (diff) | |
download | cuberite-d2e1ed3a3be0da9244e12740c28f40cd19b9ccab.tar cuberite-d2e1ed3a3be0da9244e12740c28f40cd19b9ccab.tar.gz cuberite-d2e1ed3a3be0da9244e12740c28f40cd19b9ccab.tar.bz2 cuberite-d2e1ed3a3be0da9244e12740c28f40cd19b9ccab.tar.lz cuberite-d2e1ed3a3be0da9244e12740c28f40cd19b9ccab.tar.xz cuberite-d2e1ed3a3be0da9244e12740c28f40cd19b9ccab.tar.zst cuberite-d2e1ed3a3be0da9244e12740c28f40cd19b9ccab.zip |
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/HeiGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/HeiGen.cpp b/src/Generating/HeiGen.cpp index defe053d9..54567cb4d 100644 --- a/src/Generating/HeiGen.cpp +++ b/src/Generating/HeiGen.cpp @@ -59,7 +59,7 @@ public: { 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)); } |