This commit is contained in:
parent
d0c49c632a
commit
f184531873
1 changed files with 5 additions and 5 deletions
|
@ -719,7 +719,7 @@ void CNpcEnemy::think(int _frames)
|
||||||
|
|
||||||
CEnemyThing::think(_frames);
|
CEnemyThing::think(_frames);
|
||||||
|
|
||||||
processGenericGetUserDist( _frames, &playerXDist, &playerYDist );
|
processGenericGetUserDist( moveFrames, &playerXDist, &playerYDist );
|
||||||
playerXDistSqr = playerXDist * playerXDist;
|
playerXDistSqr = playerXDist * playerXDist;
|
||||||
playerYDistSqr = playerYDist * playerYDist;
|
playerYDistSqr = playerYDist * playerYDist;
|
||||||
|
|
||||||
|
@ -737,7 +737,7 @@ void CNpcEnemy::think(int _frames)
|
||||||
|
|
||||||
frameCount = getFrameCount();
|
frameCount = getFrameCount();
|
||||||
|
|
||||||
s32 frameShift = ( _frames << 8 ) >> 1;
|
s32 frameShift = ( moveFrames << 8 ) >> 1;
|
||||||
|
|
||||||
if ( ( frameCount << 8 ) - m_frame > frameShift )
|
if ( ( frameCount << 8 ) - m_frame > frameShift )
|
||||||
{
|
{
|
||||||
|
@ -762,7 +762,7 @@ void CNpcEnemy::think(int _frames)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
processClose(_frames);
|
processClose( moveFrames );
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -773,7 +773,7 @@ void CNpcEnemy::think(int _frames)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NPC_CONTROL_CLOSE:
|
case NPC_CONTROL_CLOSE:
|
||||||
processClose(_frames);
|
processClose( moveFrames );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -796,7 +796,7 @@ void CNpcEnemy::think(int _frames)
|
||||||
|
|
||||||
if ( !m_isCaught )
|
if ( !m_isCaught )
|
||||||
{
|
{
|
||||||
processTimer(_frames);
|
processTimer( moveFrames );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue