This commit is contained in:
parent
4e4300b439
commit
aa3b575d38
3 changed files with 48 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue