diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-27 11:01:20 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-27 11:01:20 +0100 |
commit | 71cd0199fda68a84c5f9a5252bf63e69712b177b (patch) | |
tree | f53d9488a3b5663aa6697fb3e6f68c9a4ea03939 /source/WorldStorage/WSSCompact.cpp | |
parent | AnvilStats: Added ChunkExtract mode of operation, splitting Anvil files into individual chunks. (diff) | |
download | cuberite-71cd0199fda68a84c5f9a5252bf63e69712b177b.tar cuberite-71cd0199fda68a84c5f9a5252bf63e69712b177b.tar.gz cuberite-71cd0199fda68a84c5f9a5252bf63e69712b177b.tar.bz2 cuberite-71cd0199fda68a84c5f9a5252bf63e69712b177b.tar.lz cuberite-71cd0199fda68a84c5f9a5252bf63e69712b177b.tar.xz cuberite-71cd0199fda68a84c5f9a5252bf63e69712b177b.tar.zst cuberite-71cd0199fda68a84c5f9a5252bf63e69712b177b.zip |
Diffstat (limited to '')
-rw-r--r-- | source/WorldStorage/WSSCompact.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/WorldStorage/WSSCompact.cpp b/source/WorldStorage/WSSCompact.cpp index 87cf1d930..1d873add6 100644 --- a/source/WorldStorage/WSSCompact.cpp +++ b/source/WorldStorage/WSSCompact.cpp @@ -171,8 +171,8 @@ cWSSCompact::cPAKFile * cWSSCompact::LoadPAKFile(const cChunkCoords & a_Chunk) // ASSUMES that m_CS has been locked // We need to retain this weird conversion code, because some edge chunks are in the wrong PAK file - const int LayerX = (int)(floorf((float)a_Chunk.m_ChunkX / 32.0f)); - const int LayerZ = (int)(floorf((float)a_Chunk.m_ChunkZ / 32.0f)); + const int LayerX = FAST_FLOOR_DIV(a_Chunk.m_ChunkX, 32); + const int LayerZ = FAST_FLOOR_DIV(a_Chunk.m_ChunkZ, 32); // Is it already cached? for (cPAKFiles::iterator itr = m_PAKFiles.begin(); itr != m_PAKFiles.end(); ++itr) |