]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Only update grabber accuracy stats when we hit a player! Currently, it also updated...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 2 Mar 2011 14:57:59 +0000 (16:57 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 2 Mar 2011 14:57:59 +0000 (16:57 +0200)
data/qcsrc/server/g_grabber.qc

index e9b405f62c13ceb0f10429e8add751ae94dd421f..079a0e12768ddc4d8e38da260a3917e7fb5933eb 100644 (file)
@@ -270,10 +270,10 @@ void GrabberTouch (void)
                                        self.owner.typehitsound += 1;\r
                                else\r
                                        self.owner.hitsound += 1;\r
+                               W_Grabber_UpdateStats(self.owner, FALSE, TRUE); // count this as a hit\r
                        }\r
 \r
                        SetMovetypeFollow(self, other);\r
-                       W_Grabber_UpdateStats(self.owner, FALSE, TRUE); // count this as a hit\r
                        WarpZone_RefSys_BeginAddingIncrementally(self, self.aiment);\r
                }\r
 \r