]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Only reset the killcount and alivetime of *players* (observers/spectators already...
authorMario <mario@smbclan.net>
Sat, 4 Mar 2017 16:38:53 +0000 (02:38 +1000)
committerMario <mario@smbclan.net>
Sat, 4 Mar 2017 16:38:53 +0000 (02:38 +1000)
qcsrc/server/command/vote.qc

index 4a561bf98409c88a2309a1bac87b7fb6eeb5849e..b6f38ed32b4632074828079c82b8cf07407058b4 100644 (file)
@@ -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));