From: Mario Date: Mon, 18 Jun 2018 05:15:29 +0000 (+1000) Subject: If game is stopped, don't count accuracy X-Git-Tag: xonotic-v0.8.5~2018 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=32190d3dc9786c24001a66dc8e2a07f41b6cc0a6;p=xonotic%2Fxonotic-data.pk3dir.git If game is stopped, don't count accuracy --- diff --git a/qcsrc/server/weapons/accuracy.qc b/qcsrc/server/weapons/accuracy.qc index 2d553ba16..8cd7ab66c 100644 --- a/qcsrc/server/weapons/accuracy.qc +++ b/qcsrc/server/weapons/accuracy.qc @@ -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