mirror of
https://github.com/yquake2/zaero.git
synced 2024-11-10 06:32:04 +00:00
Fix clang warnings, abs() may not be used for floats.
This commit is contained in:
parent
7bb26be80c
commit
511db03dfc
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue