This commit is contained in:
parent
adee4b97be
commit
5177f930ff
2 changed files with 18 additions and 2 deletions
|
@ -48,13 +48,13 @@ void CNpcFallingNoRespawnPlatform::processMovement( int _frames )
|
|||
s32 distX, distY, heading;
|
||||
bool pathComplete;
|
||||
|
||||
DVECTOR offset = CLevel::getCameraPos();
|
||||
|
||||
if ( m_spinFinish )
|
||||
{
|
||||
m_rotation += 64 * _frames;
|
||||
m_rotation &= 4095;
|
||||
|
||||
DVECTOR offset = CLevel::getCameraPos();
|
||||
|
||||
if ( m_bounceDir )
|
||||
{
|
||||
Pos.vx += 2 * _frames;
|
||||
|
@ -109,6 +109,13 @@ void CNpcFallingNoRespawnPlatform::processMovement( int _frames )
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
s32 yPos = Pos.vy - offset.vy;
|
||||
|
||||
if ( yPos > VidGetScrH() + 100 )
|
||||
{
|
||||
setToShutdown();
|
||||
}
|
||||
}
|
||||
|
||||
Pos.vx += moveX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue