1
0

Merged if statements.

This commit is contained in:
Samuel Barney 2013-12-05 10:01:23 -07:00
parent 3d9396b097
commit d62bfdaca4

View File

@ -136,13 +136,7 @@ void cFireSimulator::SimulateChunk(float a_Dt, int a_ChunkX, int a_ChunkZ, cChun
continue;
}
BLOCKTYPE Burnee = E_BLOCK_AIR;
if (itr->y > 0)
{
Burnee = a_Chunk->GetBlock(itr->x, itr->y - 1, itr->z);
}
if(!DoesBurnForever(Burnee))
if((itr->y > 0) && (!DoesBurnForever(a_Chunk->GetBlock(itr->x, itr->y - 1, itr->z))))
{
a_Chunk->SetMeta(idx, BlockMeta + 1);
}