1
0

Fix for clang

This commit is contained in:
r.ramazanov 2014-04-25 10:58:48 +04:00
parent a72744f5c3
commit 827c3760db

View File

@ -798,11 +798,7 @@ void cEntity::TickBurning(cChunk & a_Chunk)
if (m_World->IsWeatherWet()) if (m_World->IsWeatherWet())
{ {
int PosX = POSX_TOINT - a_Chunk.GetPosX() * cChunkDef::Width; if (POSY_TOINT > m_World->GetHeight(POSX_TOINT, POSZ_TOINT))
int PosY = POSY_TOINT;
int PosZ = POSZ_TOINT - a_Chunk.GetPosZ() * cChunkDef::Width;
if (PosY > m_World->GetHeight(POSX_TOINT, POSZ_TOINT))
{ {
m_TicksLeftBurning = 0; m_TicksLeftBurning = 0;
} }