From 015b3a5d19b650c297f9caac2b3c5d4a4882728c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 28 Jul 2012 12:20:36 +0000 Subject: Caves and Ravines: fixed compilation and linking issues on gcc git-svn-id: http://mc-server.googlecode.com/svn/trunk@699 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Ravines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Ravines.cpp') 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); -- cgit v1.2.3