diff options
author | Mattes D <github@xoft.cz> | 2015-10-08 18:46:27 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-10-08 18:46:27 +0200 |
commit | 5d376bae1cae4da24a6a58a2438174b564d16187 (patch) | |
tree | e02c28ec25b98a8db58ec8e3aaf95263d0c168d1 /src/Mobs | |
parent | Merge pull request #2533 from cuberite/LuaTLSClientCertFix (diff) | |
parent | StyleCheck: Check spaces around ==, <=, >= (diff) | |
download | cuberite-5d376bae1cae4da24a6a58a2438174b564d16187.tar cuberite-5d376bae1cae4da24a6a58a2438174b564d16187.tar.gz cuberite-5d376bae1cae4da24a6a58a2438174b564d16187.tar.bz2 cuberite-5d376bae1cae4da24a6a58a2438174b564d16187.tar.lz cuberite-5d376bae1cae4da24a6a58a2438174b564d16187.tar.xz cuberite-5d376bae1cae4da24a6a58a2438174b564d16187.tar.zst cuberite-5d376bae1cae4da24a6a58a2438174b564d16187.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Monster.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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)) { |