]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/vote.qc
Reset weapon accuracy on readyrestart
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / vote.qc
index ffc81c4685794480cf749cea7b87129134b8de71..71fb0902b3f22d390bada64e0728802111be9794 100644 (file)
@@ -441,7 +441,10 @@ void ReadyRestart_force()
        game_starttime = time + RESTART_COUNTDOWN;
 
        // clear player attributes
-       FOREACH_CLIENT(IS_PLAYER(it), {
+       FOREACH_CLIENT(true, {
+               accuracy_reset(it);
+               if (!IS_PLAYER(it))
+                       continue;
                it.alivetime = 0;
                CS(it).killcount = 0;
                float val = PlayerStats_GameReport_Event_Player(it, PLAYERSTATS_ALIVETIME, 0);