This commit is contained in:
Charles 2001-05-08 15:35:37 +00:00
parent 7c1e7b2ab7
commit 7459256624

View file

@ -60,8 +60,11 @@ void CNpcFallingNoRespawnPlatform::processMovement( int _frames )
if ( groundHeight < moveY )
{
moveY = groundHeight;
moveX = 2 * _frames;
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;