]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_move.c
disabled wad3 loading from "wad" key in worldspawn of map when not loading an HL map
[xonotic/darkplaces.git] / sv_move.c
index 87f3ed434a38ab1cd53b99de326a0701472b501c..8bf64f62ae02e304d3bfe924d767a8dfd88527ce 100644 (file)
--- a/sv_move.c
+++ b/sv_move.c
@@ -287,8 +287,8 @@ void SV_NewChaseDir (edict_t *actor, edict_t *enemy, float dist)
        float                   d[3];
        float           tdir, olddir, turnaround;
 
-       olddir = anglemod( (int)(actor->v.ideal_yaw/45)*45 );
-       turnaround = anglemod(olddir - 180);
+       olddir = ANGLEMOD((int)(actor->v.ideal_yaw/45)*45);
+       turnaround = ANGLEMOD(olddir - 180);
 
        deltax = enemy->v.origin[0] - actor->v.origin[0];
        deltay = enemy->v.origin[1] - actor->v.origin[1];