]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If game is stopped, don't count accuracy
authorMario <mario@smbclan.net>
Mon, 18 Jun 2018 05:15:29 +0000 (15:15 +1000)
committerMario <mario@smbclan.net>
Mon, 18 Jun 2018 05:15:29 +0000 (15:15 +1000)
qcsrc/server/weapons/accuracy.qc

index 2d553ba1685b1a62bb6f6dade746acd9042c72b2..8cd7ab66c346f5bc2041c747f116c8d15b412664 100644 (file)
@@ -94,6 +94,7 @@ bool accuracy_isgooddamage(entity attacker, entity targ)
        int mutator_check = MUTATOR_CALLHOOK(AccuracyTargetValid, attacker, targ);
 
        if (warmup_stage) return false;
+       if (game_stopped) return false;
 
        // damage to dead/frozen players is good only if it happens in the frame they get killed / frozen
        // so that stats for weapons that shoot multiple projectiles per shot are properly counted