PF - Swimming bugfix
This commit is contained in:
parent
020e928685
commit
c6dd455d72
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user