From: Rudolf Polzer Date: Fri, 1 Feb 2013 13:35:19 +0000 (+0100) Subject: clear alivetime on ready-restart X-Git-Tag: xonotic-v0.7.0~107 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1b6b3359610704b696014f2f39a6b7c72707bceb;p=xonotic%2Fxonotic-data.pk3dir.git clear alivetime on ready-restart --- 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