]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply antilag to monsters in g_subs
authorMario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 09:07:27 +0000 (20:07 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 09:07:27 +0000 (20:07 +1100)
qcsrc/server/g_subs.qc

index 3d6d2cfc218171ce5092947762fce13e69f488c2..fd0dc7861e20b1cee25cdfaa0545231952d78d57 100644 (file)
@@ -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