summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-27 11:01:20 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-27 11:01:20 +0100
commit71cd0199fda68a84c5f9a5252bf63e69712b177b (patch)
treef53d9488a3b5663aa6697fb3e6f68c9a4ea03939 /source/ClientHandle.cpp
parentAnvilStats: Added ChunkExtract mode of operation, splitting Anvil files into individual chunks. (diff)
downloadcuberite-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/ClientHandle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 3bf46420e..e2a57d79e 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -276,8 +276,8 @@ void cClientHandle::StreamChunks(void)
ASSERT(m_Player != NULL);
- int ChunkPosX = FAST_FLOOR_DIV(m_Player->GetPosX(), cChunkDef::Width);
- int ChunkPosZ = FAST_FLOOR_DIV(m_Player->GetPosZ(), cChunkDef::Width);
+ int ChunkPosX = FAST_FLOOR_DIV((int)m_Player->GetPosX(), cChunkDef::Width);
+ int ChunkPosZ = FAST_FLOOR_DIV((int)m_Player->GetPosZ(), cChunkDef::Width);
if ((ChunkPosX == m_LastStreamedChunkX) && (ChunkPosZ == m_LastStreamedChunkZ))
{
// Already streamed for this position