StyleCheck: Check spaces around ==, <=, >=

This commit is contained in:
Mattes D
2015-10-08 17:43:26 +02:00
parent 86ab236b01
commit 66e8190ca8
2 changed files with 13 additions and 5 deletions
+3 -3
View File
@@ -320,7 +320,7 @@ bool cMonster::EnsureProperDestination(cChunk & a_Chunk)
{
for (x = -1; x <= 1; ++x)
{
if ((x==0) && (z==0))
if ((x == 0) && (z == 0))
{
continue;
}
@@ -329,8 +329,8 @@ bool cMonster::EnsureProperDestination(cChunk & a_Chunk)
{
return false;
}
RelX = FloorC(m_FinalDestination.x+x) - Chunk->GetPosX() * cChunkDef::Width;
RelZ = FloorC(m_FinalDestination.z+z) - Chunk->GetPosZ() * cChunkDef::Width;
RelX = FloorC(m_FinalDestination.x + x) - Chunk->GetPosX() * cChunkDef::Width;
RelZ = FloorC(m_FinalDestination.z + z) - Chunk->GetPosZ() * cChunkDef::Width;
Chunk->GetBlockTypeMeta(RelX, FloorC(m_FinalDestination.y) - 1, RelZ, BlockType, BlockMeta);
if (cBlockInfo::IsSolid(BlockType))
{