PF - Swimming bugfix
This commit is contained in:
parent
020e928685
commit
c6dd455d72
|
@ -60,12 +60,12 @@ cPath::cPath(
|
||||||
{
|
{
|
||||||
BLOCKTYPE BlockType;
|
BLOCKTYPE BlockType;
|
||||||
NIBBLETYPE BlockMeta;
|
NIBBLETYPE BlockMeta;
|
||||||
int RelX = m_Destination.x - m_Chunk->GetPosX() * cChunkDef::Width;
|
int RelX = m_Destination.x - Chunk->GetPosX() * cChunkDef::Width;
|
||||||
int RelZ = m_Destination.z - m_Chunk->GetPosZ() * cChunkDef::Width;
|
int RelZ = m_Destination.z - Chunk->GetPosZ() * cChunkDef::Width;
|
||||||
bool inwater = false;
|
bool inwater = false;
|
||||||
for (;;)
|
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)
|
if (BlockType != E_BLOCK_STATIONARY_WATER)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user