From: Mario Date: Sat, 4 Mar 2017 16:38:53 +0000 (+1000) Subject: Only reset the killcount and alivetime of *players* (observers/spectators already... X-Git-Tag: xonotic-v0.8.2~142 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=6d62ddd3538841b10c6fd25aee3438b39b3ca04e;p=xonotic%2Fxonotic-data.pk3dir.git Only reset the killcount and alivetime of *players* (observers/spectators already have the desired values here) --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 4a561bf98..b6f38ed32 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -419,7 +419,7 @@ void ReadyRestart_force() game_starttime = time + RESTART_COUNTDOWN; // clear player attributes - FOREACH_CLIENT(true, LAMBDA( + FOREACH_CLIENT(IS_PLAYER(it), LAMBDA( it.alivetime = 0; it.killcount = 0; PS_GR_P_ADDVAL(it, PLAYERSTATS_ALIVETIME, -PS_GR_P_ADDVAL(it, PLAYERSTATS_ALIVETIME, 0));