diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-28 22:36:43 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-28 22:36:43 +0100 |
commit | ee7f36f68222ae1b19294e7da7bc09cd928a9a1d (patch) | |
tree | 980c847573b818b5a9a547e95c8fae4b26453c35 /source/Chunk.cpp | |
parent | Converted simulators to take cWorld reference instead of a pointer (diff) | |
download | cuberite-ee7f36f68222ae1b19294e7da7bc09cd928a9a1d.tar cuberite-ee7f36f68222ae1b19294e7da7bc09cd928a9a1d.tar.gz cuberite-ee7f36f68222ae1b19294e7da7bc09cd928a9a1d.tar.bz2 cuberite-ee7f36f68222ae1b19294e7da7bc09cd928a9a1d.tar.lz cuberite-ee7f36f68222ae1b19294e7da7bc09cd928a9a1d.tar.xz cuberite-ee7f36f68222ae1b19294e7da7bc09cd928a9a1d.tar.zst cuberite-ee7f36f68222ae1b19294e7da7bc09cd928a9a1d.zip |
Diffstat (limited to 'source/Chunk.cpp')
-rw-r--r-- | source/Chunk.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index 3616f6b8e..60dc5a36c 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -1193,8 +1193,6 @@ void cChunk::QueueTickBlock(int a_RelX, int a_RelY, int a_RelZ) void cChunk::QueueTickBlockNeighbors(int a_RelX, int a_RelY, int a_RelZ) { - int BlockX = m_PosX * cChunkDef::Width + a_RelX; - int BlockZ = m_PosZ * cChunkDef::Width + a_RelZ; struct { int x, y, z; @@ -1210,7 +1208,7 @@ void cChunk::QueueTickBlockNeighbors(int a_RelX, int a_RelY, int a_RelZ) } ; for (int i = 0; i < ARRAYCOUNT(Coords); i++) { - cChunk * ch = GetNeighborChunk(BlockX + Coords[i].x, a_RelY, BlockZ + Coords[i].z); + cChunk * ch = GetNeighborChunk(a_RelX + Coords[i].x, a_RelY, a_RelZ + Coords[i].z); if (ch != NULL) { ch->QueueTickBlock(a_RelX + Coords[i].x, a_RelY + Coords[i].y, a_RelZ + Coords[i].z); |