summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_buildable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 7706b598..136794e0 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -2237,9 +2237,9 @@ qboolean HMGTurret_TrackEnemy( gentity_t *self )
vectoangles( dirToTarget, self->turretAim );
//fire if target is within accuracy
- return ( abs( angularDiff[ YAW ] ) - MGTURRET_ANGULARSPEED <=
+ return ( fabs( angularDiff[ YAW ] ) - MGTURRET_ANGULARSPEED <=
MGTURRET_ACCURACY_TO_FIRE ) &&
- ( abs( angularDiff[ PITCH ] ) - MGTURRET_ANGULARSPEED <=
+ ( fabs( angularDiff[ PITCH ] ) - MGTURRET_ANGULARSPEED <=
MGTURRET_ACCURACY_TO_FIRE );
}