This commit is contained in:
parent
3a05eb9884
commit
035d72263d
20 changed files with 44 additions and 39 deletions
|
@ -298,7 +298,7 @@ s32 CNpcPath::think( DVECTOR const ¤tPos, bool *pathComplete, bool *waypoi
|
|||
*distY = ( ( *waypoint << 4 ) + 16 ) - currentPos.vy;
|
||||
}
|
||||
|
||||
s32 headingToTarget = ratan2( *distY, *distX );
|
||||
s32 headingToTarget = ratan2( *distY, *distX ) & 4095;
|
||||
|
||||
return( headingToTarget );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue