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