From: Samual Lenks Date: Mon, 22 Apr 2013 20:15:09 +0000 (-0400) Subject: Reset killcount on readyrestart too X-Git-Tag: xonotic-v0.7.0~73^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=565a9526738602d1e62040b4406dc9412aaeb9ef;p=xonotic%2Fxonotic-data.pk3dir.git Reset killcount on readyrestart too --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 059a51939..199e3265a 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -348,10 +348,11 @@ void ReadyRestart_force() game_starttime = time; if(!g_ca && !g_arena) { game_starttime += RESTART_COUNTDOWN; } - // clear alivetime + // clear player attributes FOR_EACH_CLIENT(tmp_player) { tmp_player.alivetime = 0; + tmp_player.killcount = 0; PlayerStats_Event(tmp_player, PLAYERSTATS_ALIVETIME, -PlayerStats_Event(tmp_player, PLAYERSTATS_ALIVETIME, 0)); }