This commit is contained in:
Charles 2001-05-17 15:27:03 +00:00
parent 59c8f67f54
commit 023382f336
10 changed files with 274 additions and 25 deletions

View file

@ -577,7 +577,7 @@ void CNpcEnemy::setStartPos( s32 xPos, s32 yPos )
void CNpcEnemy::setHeading( s32 xPos, s32 yPos )
{
m_heading = ratan2( ( yPos << 4 ) - Pos.vy, ( xPos << 4 ) - Pos.vx );
m_heading = ( ratan2( ( yPos << 4 ) - Pos.vy, ( xPos << 4 ) - Pos.vx ) ) & 4095;
}
@ -628,6 +628,7 @@ void CNpcEnemy::init()
m_isCaught = false;
m_isBlowerOn = false;
m_speed = m_data[m_type].speed;
m_heading = 0;
updateCollisionArea();
}