From: Mario Date: Sat, 13 Dec 2014 09:07:27 +0000 (+1100) Subject: Apply antilag to monsters in g_subs X-Git-Tag: xonotic-v0.8.0~100 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f6723cb67563590aa81879241dc42da44635be97;p=xonotic%2Fxonotic-data.pk3dir.git Apply antilag to monsters in g_subs --- diff --git a/qcsrc/server/g_subs.qc b/qcsrc/server/g_subs.qc index 3d6d2cfc2..fd0dc7861 100644 --- a/qcsrc/server/g_subs.qc +++ b/qcsrc/server/g_subs.qc @@ -481,6 +481,8 @@ void tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma, FOR_EACH_PLAYER(player) if(player != forent) antilag_takeback(player, time - lag); + FOR_EACH_MONSTER(player) + antilag_takeback(player, time - lag); } // do the trace @@ -495,6 +497,8 @@ void tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma, FOR_EACH_PLAYER(player) if(player != forent) antilag_restore(player); + FOR_EACH_MONSTER(player) + antilag_restore(player); } // restore shooter solid type