diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-13 00:24:32 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-13 00:24:32 +0200 |
commit | 5f72cdac3880f22590b30217aeab6022dc64cc69 (patch) | |
tree | f79245b62979addf8a02ee561d20a390f82631c4 /src/Map.cpp | |
parent | Comment grammar correction (diff) | |
parent | cNBTChunkSerializer: Fixed alignment. (diff) | |
download | cuberite-5f72cdac3880f22590b30217aeab6022dc64cc69.tar cuberite-5f72cdac3880f22590b30217aeab6022dc64cc69.tar.gz cuberite-5f72cdac3880f22590b30217aeab6022dc64cc69.tar.bz2 cuberite-5f72cdac3880f22590b30217aeab6022dc64cc69.tar.lz cuberite-5f72cdac3880f22590b30217aeab6022dc64cc69.tar.xz cuberite-5f72cdac3880f22590b30217aeab6022dc64cc69.tar.zst cuberite-5f72cdac3880f22590b30217aeab6022dc64cc69.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Map.cpp b/src/Map.cpp index 7721baa70..8f205a606 100644 --- a/src/Map.cpp +++ b/src/Map.cpp @@ -200,8 +200,8 @@ bool cMap::UpdatePixel(unsigned int a_X, unsigned int a_Z) int BlockX = m_CenterX + ((a_X - (m_Width / 2)) * PixelWidth); int BlockZ = m_CenterZ + ((a_Z - (m_Height / 2)) * PixelWidth); - int ChunkX, ChunkY, ChunkZ; - m_World->BlockToChunk(BlockX, 0, BlockZ, ChunkX, ChunkY, ChunkZ); + int ChunkX, ChunkZ; + cChunkDef::BlockToChunk(BlockX, BlockZ, ChunkX, ChunkZ); int RelX = BlockX - (ChunkX * cChunkDef::Width); int RelZ = BlockZ - (ChunkZ * cChunkDef::Width); |