1
0
Fork 0

PF - Swimming bugfix

This commit is contained in:
wiseoldman95 2015-05-06 09:27:47 +03:00
parent 020e928685
commit c6dd455d72
1 changed files with 3 additions and 3 deletions

View File

@ -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;