- Fix compilation with MinGW + w32api and clean up warnings.

SVN r2505 (trunk)
This commit is contained in:
Randy Heit 2010-08-11 03:56:31 +00:00
commit 3416a7fc47
9 changed files with 47 additions and 19 deletions

View file

@ -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)
{