This commit is contained in:
parent
145b6f88a8
commit
1c5929ca5e
3 changed files with 20 additions and 7 deletions
|
@ -70,7 +70,16 @@ void CNpcHazard::think(int _frames)
|
|||
|
||||
if ( m_isActive )
|
||||
{
|
||||
processMovement( _frames );
|
||||
int moveFrames = _frames;
|
||||
|
||||
if ( moveFrames > 2 )
|
||||
{
|
||||
// make sure hazards don't go berserk if too many frames are dropped
|
||||
|
||||
moveFrames = 2;
|
||||
}
|
||||
|
||||
processMovement( moveFrames );
|
||||
}
|
||||
|
||||
if ( m_timerActive )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue