This commit is contained in:
Charles 2001-06-08 14:33:43 +00:00
parent 6b0f5d9956
commit 2d65d44406
9 changed files with 245 additions and 4 deletions

View file

@ -134,7 +134,7 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames )
// check for collision
if ( CGameScene::getCollision()->getHeightFromGround( Pos.vx + moveX, Pos.vy ) < -maxHeight )
if ( CGameScene::getCollision()->getHeightFromGround( Pos.vx + moveX, Pos.vy + 14 ) < -maxHeight )
{
moveX = 0;
m_currentSpeed = 0;
@ -153,7 +153,7 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames )
// check for vertical movement
groundHeight = CGameScene::getCollision()->getHeightFromGround( Pos.vx + moveX, Pos.vy, yMovement + 16 );
groundHeight = CGameScene::getCollision()->getHeightFromGround( Pos.vx + moveX, Pos.vy + 14, yMovement + 16 );
if ( groundHeight <= yMovement )
{