mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-10 06:31:34 +00:00
Use the correct flavors of abs()
This commit is contained in:
parent
017bc7276f
commit
ca84136e65
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue