summaryrefslogtreecommitdiffstats
path: root/source/Ravines.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-28 14:20:36 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-28 14:20:36 +0200
commit015b3a5d19b650c297f9caac2b3c5d4a4882728c (patch)
tree892e4727be054998924c4e3a7a0a6baef7a338be /source/Ravines.cpp
parentRemoved bottom lava from caves generator, added a new finish generator BottomLava for that. Also fixed a slight error in SameBlock composition generator cfg (diff)
downloadcuberite-015b3a5d19b650c297f9caac2b3c5d4a4882728c.tar
cuberite-015b3a5d19b650c297f9caac2b3c5d4a4882728c.tar.gz
cuberite-015b3a5d19b650c297f9caac2b3c5d4a4882728c.tar.bz2
cuberite-015b3a5d19b650c297f9caac2b3c5d4a4882728c.tar.lz
cuberite-015b3a5d19b650c297f9caac2b3c5d4a4882728c.tar.xz
cuberite-015b3a5d19b650c297f9caac2b3c5d4a4882728c.tar.zst
cuberite-015b3a5d19b650c297f9caac2b3c5d4a4882728c.zip
Diffstat (limited to 'source/Ravines.cpp')
-rw-r--r--source/Ravines.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Ravines.cpp b/source/Ravines.cpp
index cee1192d6..1474c5e8d 100644
--- a/source/Ravines.cpp
+++ b/source/Ravines.cpp
@@ -450,7 +450,7 @@ void cStructGenRavines::cRavine::ProcessChunk(
int DistSq = (DifX + x) * (DifX + x) + (DifZ + z) * (DifZ + z);
if (DistSq <= RadiusSq)
{
- int Top = std::min(itr->m_Top, cChunkDef::Height);
+ int Top = std::min(itr->m_Top, (int)(cChunkDef::Height)); // Stupid gcc needs int cast
for (int y = std::max(itr->m_Bottom, 1); y <= Top; y++)
{
cChunkDef::SetBlock(a_BlockTypes, x, y, z, E_BLOCK_AIR);