This commit is contained in:
parent
22d2f5af4b
commit
4f90ba2bfa
1 changed files with 1 additions and 1 deletions
|
@ -517,7 +517,7 @@ void CNpcEnemy::setStartPos( s32 xPos, s32 yPos )
|
||||||
|
|
||||||
void CNpcEnemy::setHeading( 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…
Add table
Add a link
Reference in a new issue