From 66e8190ca801b78b66c29030e4ace783582b4ec8 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 8 Oct 2015 16:16:53 +0200 Subject: StyleCheck: Check spaces around ==, <=, >= --- src/Mobs/Monster.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Mobs') diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 4d9b9ca06..7bf56bb47 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -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)) { -- cgit v1.2.3