This commit is contained in:
Charles 2001-05-22 20:39:46 +00:00
parent 4e4300b439
commit aa3b575d38
3 changed files with 48 additions and 4 deletions

View file

@ -19,11 +19,28 @@
void CNpcBubblePlatform::processMovement( int _frames )
{
Pos.vy -= m_speed * _frames;
if ( Pos.vy < 0 )
if ( !isSetToShutdown() )
{
setToShutdown();
Pos.vy -= m_speed * _frames;
if ( m_npcPath.getWaypointCount() > 1 )
{
s32 minY, maxY;
m_npcPath.getPathYExtents( &minY, &maxY );
if ( Pos.vy < minY )
{
setToShutdown();
}
}
else
{
if ( Pos.vy < 0 )
{
setToShutdown();
}
}
}
}