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 e9b405f..079a0e1 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