Fix clang warnings, abs() may not be used for floats.

This commit is contained in:
Yamagi Burmeister 2019-02-04 13:31:11 +01:00
parent 7bb26be80c
commit 511db03dfc

View file

@ -444,7 +444,7 @@ void 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) || fabs(deltay)>fabs(deltax))
{ {
tdir=d[1]; tdir=d[1];
d[1]=d[2]; d[1]=d[2];