]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't restart the server with the restart command if all players are ready between...
authorterencehill <piuntn@gmail.com>
Wed, 8 Jul 2020 16:30:02 +0000 (18:30 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 8 Jul 2020 16:30:02 +0000 (18:30 +0200)
qcsrc/server/command/vote.qc

index a34203ffd22025d9b3f2bd2bf2e60540ba9b5080..2f5f41efd0e5ead00bfcbb24fd1c8cabe56f80ff 100644 (file)
@@ -476,7 +476,7 @@ void ReadyRestart_force()
 
 void ReadyRestart()
 {
-       if (MUTATOR_CALLHOOK(ReadyRestart_Deny) || game_stopped || race_completing) localcmd("restart\n");
+       if (MUTATOR_CALLHOOK(ReadyRestart_Deny) || intermission_running || race_completing) localcmd("restart\n");
        else localcmd("\nsv_hook_readyrestart\n");
 
        // Reset ALL scores, but only do that at the beginning of the countdown if sv_ready_restart_after_countdown is off!