- Fix compilation with MinGW + w32api and clean up warnings.
SVN r2505 (trunk)
This commit is contained in:
parent
e0bd67de5a
commit
3416a7fc47
9 changed files with 47 additions and 19 deletions
|
|
@ -2688,7 +2688,7 @@ void A_FaceTarget (AActor *self, angle_t max_turn)
|
|||
|
||||
// 0 means no limit. Also, if we turn in a single step anyways, no need to go through the algorithms.
|
||||
// It also means that there is no need to check for going past the target.
|
||||
if (max_turn && (max_turn < abs(self->angle - target_angle)))
|
||||
if (max_turn && (max_turn < (angle_t)abs(self->angle - target_angle)))
|
||||
{
|
||||
if (self->angle > target_angle)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue