]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix fo bug #1390: "If sv_ready_restart_after_countdown 1 is set, the scoreboard point...
authorterencehill <piuntn@gmail.com>
Sun, 10 Feb 2013 17:50:16 +0000 (18:50 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 10 Feb 2013 17:51:13 +0000 (18:51 +0100)
Note that this issue doesn't exist in Arena as map is restarted via the console command "restart", and warmup stage isn't allowed.

qcsrc/server/command/vote.qc

index 45e15c95f62dd3441189ed9e85cf78c2e9bf42c8..ad44e9382455d9303626f269112d38006bd52443 100644 (file)
@@ -424,7 +424,7 @@ void ReadyRestart_force()
 
        readyrestart_happened = 1;
        game_starttime = time;
-       if(!g_ca && !g_arena) { game_starttime += RESTART_COUNTDOWN; }
+       if(!g_arena) { game_starttime += RESTART_COUNTDOWN; }
 
        // clear alivetime
        FOR_EACH_CLIENT(tmp_player)
@@ -444,14 +444,14 @@ void ReadyRestart_force()
        Nagger_ReadyCounted(); // NOTE: this causes a resend of that entity, and will also turn off warmup state on the client
 
        // lock teams with lockonrestart
-       if(autocvar_teamplay_lockonrestart && teamplay) 
+       if(autocvar_teamplay_lockonrestart && teamplay)
        {
                lockteams = 1;
                bprint("^1The teams are now locked.\n");
        }
 
        //initiate the restart-countdown-announcer entity
-       if(autocvar_sv_ready_restart_after_countdown && !g_ca && !g_arena)
+       if(autocvar_sv_ready_restart_after_countdown && !g_arena)
        {
                restart_timer = spawn();
                restart_timer.think = ReadyRestart_think;