1
0

Added parenthesis around the comparisons

This commit is contained in:
STRWarrior 2015-03-08 15:22:01 +01:00
parent 2bbfd0341f
commit d19f2a472b

View File

@ -551,8 +551,8 @@ protected:
return;
}
BLOCKTYPE Block = m_MesaFloor.CubicNoise2D(NoiseX * 4, NoiseY * 4) < 0 ? E_BLOCK_DIRT : E_BLOCK_GRASS;
NIBBLETYPE Meta = Block == E_BLOCK_GRASS ? 0 : 1;
BLOCKTYPE Block = (m_MesaFloor.CubicNoise2D(NoiseX * 4, NoiseY * 4) < 0) ? E_BLOCK_DIRT : E_BLOCK_GRASS;
NIBBLETYPE Meta = (Block == E_BLOCK_GRASS) ? 0 : 1;
a_ChunkDesc.SetBlockTypeMeta(a_RelX, Top, a_RelZ, Block, Meta);
}