This commit is contained in:
Charles 2001-08-15 14:45:46 +00:00
parent 441dbbef00
commit 4731a653ba
3 changed files with 21 additions and 4 deletions

View file

@ -162,6 +162,14 @@ void CNpcSmallJellyfishBackgroundEnemy::processMovement( int _frames )
}*/
processMovementModifier( _frames, moveX, moveY, moveVel, moveDist );
CLevel &level = GameScene.GetLevel();
DVECTOR const &MapSize=level.getMapSize16();
if ( Pos.vx < 0 || Pos.vx >= MapSize.vx ||
Pos.vy < 0 || Pos.vy >= MapSize.vy )
{
setToShutdown();
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////