From 6d62ddd3538841b10c6fd25aee3438b39b3ca04e Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 5 Mar 2017 02:38:53 +1000 Subject: [PATCH] Only reset the killcount and alivetime of *players* (observers/spectators already have the desired values here) --- qcsrc/server/command/vote.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2