mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-10 06:42:22 +00:00
Use the correct flavor of abs()
This commit is contained in:
parent
dd50746c4c
commit
dd3bf3ee29
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,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];
|
||||
|
|
Loading…
Reference in a new issue