This commit is contained in:
parent
7c1e7b2ab7
commit
7459256624
1 changed files with 5 additions and 2 deletions
|
@ -59,10 +59,13 @@ void CNpcFallingNoRespawnPlatform::processMovement( int _frames )
|
|||
s32 groundHeight = m_layerCollision->getHeightFromGround( Pos.vx + moveX, Pos.vy + moveY, 16 );
|
||||
|
||||
if ( groundHeight < moveY )
|
||||
{
|
||||
if ( ( m_layerCollision->getCollisionBlock( Pos.vx, Pos.vy + groundHeight + 8 ) & COLLISION_TYPE_MASK ) != (7<<COLLISION_TYPE_FLAG_SHIFT) )
|
||||
{
|
||||
moveY = groundHeight;
|
||||
moveX = 2 * _frames;
|
||||
}
|
||||
}
|
||||
|
||||
Pos.vx += moveX;
|
||||
Pos.vy += moveY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue