Use the correct flavors of abs()

This commit is contained in:
Yamagi Burmeister 2014-08-03 11:16:08 +02:00
parent 017bc7276f
commit ca84136e65
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ SV_NewChaseDir(edict_t *actor, edict_t *enemy, float dist)
} }
/* try other directions */ /* try other directions */
if (((rand() & 3) & 1) || (abs(deltay) > abs(deltax))) if (((rand() & 3) & 1) || (fabsf(deltay) > fabsf(deltax)))
{ {
tdir = d[1]; tdir = d[1];
d[1] = d[2]; d[1] = d[2];