Skip to content

Commit

Permalink
Added parenthesis around the comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLSPACE committed Mar 8, 2015
1 parent 2bbfd03 commit d19f2a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Generating/CompoGenBiomal.cpp
Expand Up @@ -551,8 +551,8 @@ class cCompoGenBiomal :
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);
}
Expand Down

0 comments on commit d19f2a4

Please sign in to comment.