mirror of
https://github.com/cuberite/cuberite.git
synced 2025-01-08 11:57:39 +08:00
ClientHandle: fix incorrect position floor
This commit is contained in:
parent
61aefeae7b
commit
b8071f1449
@ -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;
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user