summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-11-30 16:34:41 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-11-30 16:34:41 +0100
commit65dc452923f8db74f0fcb3869d4301cb10ee1ca6 (patch)
tree66bcfab1673907c2881963615fe18dba9cba2245 /src
parentFixed compiling on linux. (diff)
downloadcuberite-65dc452923f8db74f0fcb3869d4301cb10ee1ca6.tar
cuberite-65dc452923f8db74f0fcb3869d4301cb10ee1ca6.tar.gz
cuberite-65dc452923f8db74f0fcb3869d4301cb10ee1ca6.tar.bz2
cuberite-65dc452923f8db74f0fcb3869d4301cb10ee1ca6.tar.lz
cuberite-65dc452923f8db74f0fcb3869d4301cb10ee1ca6.tar.xz
cuberite-65dc452923f8db74f0fcb3869d4301cb10ee1ca6.tar.zst
cuberite-65dc452923f8db74f0fcb3869d4301cb10ee1ca6.zip
Diffstat (limited to '')
-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--)
{