diff --git a/src/monster/misc/move.c b/src/monster/misc/move.c index 1c7835b..37eca36 100644 --- a/src/monster/misc/move.c +++ b/src/monster/misc/move.c @@ -573,7 +573,7 @@ SV_NewChaseDir(edict_t *actor, edict_t *enemy, float dist) } /* try other directions */ - if (((rand() & 3) & 1) || (abs(deltay) > abs(deltax))) + if (((rand() & 3) & 1) || (fabsf(deltay) > fabsf(deltax))) { tdir = d[1]; d[1] = d[2];