]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/vote.qc
Use a cvar for monster list rather than a hardcoded string (invalid value is replaced...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / vote.qc
index 784a9821e07472e2957c692cf8bcf36c4c6908c1..329fb9d4ef98c1a4d8d4ee0c30b8b15e9625f701 100644 (file)
@@ -349,10 +349,10 @@ void ReadyRestart_force()
        if(!g_ca && !g_arena) { game_starttime += RESTART_COUNTDOWN; }
 
        // clear alivetime
-       FOR_EACH_CLIENTP(tmp_player)
+       FOR_EACH_CLIENT(tmp_player)
        {
                tmp_player.alivetime = 0;
-               PlayerStats_Event(p, PLAYERSTATS_ALIVETIME, -PlayerStats_Event(p, PLAYERSTATS_ALIVETIME));
+               PlayerStats_Event(tmp_player, PLAYERSTATS_ALIVETIME, -PlayerStats_Event(tmp_player, PLAYERSTATS_ALIVETIME, 0));
        }
 
        restart_mapalreadyrestarted = 0; // reset this var, needed when cvar sv_ready_restart_repeatable is in use