This commit is contained in:
Charles 2001-07-27 13:31:52 +00:00
parent 3a05eb9884
commit 035d72263d
20 changed files with 44 additions and 39 deletions

View file

@ -298,7 +298,7 @@ s32 CNpcPath::think( DVECTOR const &currentPos, bool *pathComplete, bool *waypoi
*distY = ( ( *waypoint << 4 ) + 16 ) - currentPos.vy;
}
s32 headingToTarget = ratan2( *distY, *distX );
s32 headingToTarget = ratan2( *distY, *distX ) & 4095;
return( headingToTarget );
}