This commit is contained in:
parent
c20a471032
commit
4f6668e449
1 changed files with 9 additions and 0 deletions
|
@ -155,5 +155,14 @@ void CNpcJellyfishPlatform::think( int _frames )
|
|||
|
||||
Pos.vy += m_dipOffset;
|
||||
|
||||
s32 minY, maxY;
|
||||
|
||||
m_npcPath.getPathYExtents( &minY, &maxY );
|
||||
|
||||
if ( Pos.vy > ( maxY + 16 ) )
|
||||
{
|
||||
Pos.vy = maxY + 16;
|
||||
}
|
||||
|
||||
CNpcLinearPlatform::think( _frames );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue