]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix antilag for shotgun secondary (should now work better with high ping)
authorSamual <samual@xonotic.org>
Fri, 30 Sep 2011 20:08:21 +0000 (16:08 -0400)
committerSamual <samual@xonotic.org>
Fri, 30 Sep 2011 20:08:21 +0000 (16:08 -0400)
qcsrc/server/w_shotgun.qc

index 58ac58f080fdc1a26c987456d5b6fe5c8c067237..f2ccef0a25493ea55e71e26611bddc3ab0bb9644 100644 (file)
@@ -80,7 +80,7 @@ void shotgun_meleethink (void)
                        + (v_up * swing_factor * autocvar_g_balance_shotgun_secondary_melee_swing_up)
                        + (v_right * swing_factor * autocvar_g_balance_shotgun_secondary_melee_swing_side));
 
-               WarpZone_traceline_antilag(self.realowner, self.realowner.origin + self.realowner.view_ofs, targpos, FALSE, lgbeam_owner_ent, ANTILAG_LATENCY(self.realowner));
+               WarpZone_traceline_antilag(self.realowner, self.realowner.origin + self.realowner.view_ofs, targpos, FALSE, self.realowner, ANTILAG_LATENCY(self.realowner));
 
                // draw lightning beams for debugging
                te_lightning2(world, targpos, self.realowner.origin + self.realowner.view_ofs + v_forward * 5 - v_up * 5);