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
1 changed files with 1 additions and 1 deletions

View File

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