]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_move.c
made darkplaces able to compile as C++ again, and fixed all conversion warnings when...
[xonotic/darkplaces.git] / sv_move.c
index 8c8f9b866aaaf3f7ec5abd0431829398ecef5c6a..99e1f60b1d24af05d16affb68424f49c3ab2b685 100644 (file)
--- a/sv_move.c
+++ b/sv_move.c
@@ -309,7 +309,7 @@ void SV_NewChaseDir (prvm_edict_t *actor, prvm_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];