This commit is contained in:
Charles 2001-06-25 13:53:02 +00:00
parent bfa96dcf14
commit 33b3ec96e2
3 changed files with 8 additions and 7 deletions

View file

@ -108,6 +108,7 @@ void CNpcRaftPlatform::processMovement( int _frames )
{
// fall
moveX = distX * m_speed * _frames;
moveY = yMovement;
}
}
@ -150,18 +151,18 @@ void CNpcRaftPlatform::processMovement( int _frames )
s16 heightDiff;
heightDiff = CGameScene::getCollision()->getHeightFromGround( testPos1.vx, testPos1.vy, 16 );
heightDiff = CGameScene::getCollision()->getHeightFromGround( testPos1.vx, testPos1.vy, 32 );
if ( heightDiff == 16 )
if ( heightDiff == 32 )
{
return;
}
testPos1.vy += heightDiff;
heightDiff = CGameScene::getCollision()->getHeightFromGround( testPos2.vx, testPos2.vy, 16 );
heightDiff = CGameScene::getCollision()->getHeightFromGround( testPos2.vx, testPos2.vy, 32 );
if ( heightDiff == 16 )
if ( heightDiff == 32 )
{
return;
}