From 1b6b3359610704b696014f2f39a6b7c72707bceb Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 1 Feb 2013 14:35:19 +0100 Subject: [PATCH] clear alivetime on ready-restart --- qcsrc/server/command/vote.qc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index abdae75d5..784a9821e 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -347,7 +347,14 @@ void ReadyRestart_force() readyrestart_happened = 1; game_starttime = time; if(!g_ca && !g_arena) { game_starttime += RESTART_COUNTDOWN; } - + + // clear alivetime + FOR_EACH_CLIENTP(tmp_player) + { + tmp_player.alivetime = 0; + PlayerStats_Event(p, PLAYERSTATS_ALIVETIME, -PlayerStats_Event(p, PLAYERSTATS_ALIVETIME)); + } + restart_mapalreadyrestarted = 0; // reset this var, needed when cvar sv_ready_restart_repeatable is in use // disable the warmup global for the server -- 2.39.2