summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index ef596baf0..3f56dfedf 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -624,8 +624,8 @@ void cClientHandle::StreamNextChunks(void)
void cClientHandle::UnloadOutOfRangeChunks(void)
{
- int ChunkPosX = FAST_FLOOR_DIV(static_cast<int>(m_Player->GetPosX()), cChunkDef::Width);
- int ChunkPosZ = FAST_FLOOR_DIV(static_cast<int>(m_Player->GetPosZ()), cChunkDef::Width);
+ int ChunkPosX = FloorC(m_Player->GetPosX() / cChunkDef::Width);
+ int ChunkPosZ = FloorC(m_Player->GetPosZ() / cChunkDef::Width);
cChunkCoordsList ChunksToRemove;
{