summaryrefslogtreecommitdiffstats
path: root/src/Generating/CompoGen.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-30 19:38:52 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-30 19:38:52 +0100
commit6adf749164d7bc98bf34173b1f9d64804913d734 (patch)
treee15bd9dd8512fdbb61736db4d2d0b1f218bb81f0 /src/Generating/CompoGen.cpp
parentRemoved old MobType category. (diff)
parentHopefully fixed random build fails (diff)
downloadcuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar
cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.gz
cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.bz2
cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.lz
cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.xz
cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.zst
cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.zip
Diffstat (limited to 'src/Generating/CompoGen.cpp')
-rw-r--r--src/Generating/CompoGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/CompoGen.cpp b/src/Generating/CompoGen.cpp
index 23cc64d78..6c3b50b4e 100644
--- a/src/Generating/CompoGen.cpp
+++ b/src/Generating/CompoGen.cpp
@@ -324,7 +324,7 @@ void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc:
CeilingDisguise = -CeilingDisguise;
}
- int CeilingDisguiseHeight = Height - 2 - (int)CeilingDisguise * 3;
+ int CeilingDisguiseHeight = Height - 2 - FloorC(CeilingDisguise * 3);
for (int y = Height - 1; y > CeilingDisguiseHeight; y--)
{