This commit is contained in:
parent
22d2f5af4b
commit
4f90ba2bfa
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user