Use the correct flavor of abs()

This commit is contained in:
Yamagi Burmeister 2014-08-03 11:43:14 +02:00
parent dd50746c4c
commit dd3bf3ee29

View file

@ -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];