This commit is contained in:
Charles 2001-06-01 13:30:05 +00:00
parent 22d2f5af4b
commit 4f90ba2bfa

View File

@ -517,7 +517,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 ) ) & 4095;
m_heading = ( ratan2( ( ( yPos << 4 ) + 16 ) - Pos.vy, ( ( xPos << 4 ) + 8 ) - Pos.vx ) ) & 4095;
}