diff options
author | tycho <work.tycho@gmail.com> | 2015-05-24 15:58:24 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-05-24 15:58:24 +0200 |
commit | 76a3165f09e729c07cc64b085ec320cbeb206d59 (patch) | |
tree | e38a75f890aaa171d76828c27a318d7f7114605b /src/Generating/HeiGen.cpp | |
parent | Disable -Werror for warnings in tests. (diff) | |
download | cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.gz cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.bz2 cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.lz cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.xz cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.zst cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.zip |
Diffstat (limited to 'src/Generating/HeiGen.cpp')
-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 6aa52c4a5..aa1c1893b 100644 --- a/src/Generating/HeiGen.cpp +++ b/src/Generating/HeiGen.cpp @@ -58,7 +58,7 @@ public: virtual void GenHeightMap(int a_ChunkX, int a_ChunkZ, cChunkDef::HeightMap & a_HeightMap) override { int heights[cChunkDef::Width * cChunkDef::Width]; - m_Gen->GetInts(static_cast<size_t>(a_ChunkX * cChunkDef::Width), static_cast<size_t>(a_ChunkZ * cChunkDef::Width), static_cast<size_t>(cChunkDef::Width), static_cast<size_t>(cChunkDef::Width), heights); + m_Gen->GetInts(a_ChunkX * cChunkDef::Width, a_ChunkZ * cChunkDef::Width, static_cast<size_t>(cChunkDef::Width), static_cast<size_t>(cChunkDef::Width), heights); 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)); |