From c6dd455d7211a4f0819fc0a0b7839b10732965bd Mon Sep 17 00:00:00 2001 From: wiseoldman95 Date: Wed, 6 May 2015 09:27:47 +0300 Subject: PF - Swimming bugfix --- src/Mobs/Path.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp index a0b83f593..84d888bf2 100644 --- a/src/Mobs/Path.cpp +++ b/src/Mobs/Path.cpp @@ -60,12 +60,12 @@ cPath::cPath( { BLOCKTYPE BlockType; NIBBLETYPE BlockMeta; - int RelX = m_Destination.x - m_Chunk->GetPosX() * cChunkDef::Width; - int RelZ = m_Destination.z - m_Chunk->GetPosZ() * cChunkDef::Width; + int RelX = m_Destination.x - Chunk->GetPosX() * cChunkDef::Width; + int RelZ = m_Destination.z - Chunk->GetPosZ() * cChunkDef::Width; bool inwater = false; for (;;) { - m_Chunk->GetBlockTypeMeta(RelX, m_Destination.y, RelZ, BlockType, BlockMeta); + Chunk->GetBlockTypeMeta(RelX, m_Destination.y, RelZ, BlockType, BlockMeta); if (BlockType != E_BLOCK_STATIONARY_WATER) { break; -- cgit v1.2.3