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

View file

@ -527,7 +527,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];