]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset killcount on readyrestart too
authorSamual Lenks <samual@xonotic.org>
Mon, 22 Apr 2013 20:15:09 +0000 (16:15 -0400)
committerSamual Lenks <samual@xonotic.org>
Mon, 22 Apr 2013 20:15:09 +0000 (16:15 -0400)
qcsrc/server/command/vote.qc

index 059a51939d4287f5b58b0c68281bd92ce76c393f..199e3265a8f75672ea0fe9ce53ffea1ddfb8853a 100644 (file)
@@ -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));
        }