From: terencehill Date: Wed, 8 Jul 2020 16:30:02 +0000 (+0200) Subject: Don't restart the server with the restart command if all players are ready between... X-Git-Tag: xonotic-v0.8.5~891 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=50cc0dc32d408ef552daa1edfb84edfebf395fb3;p=xonotic%2Fxonotic-data.pk3dir.git Don't restart the server with the restart command if all players are ready between rounds --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index a34203ffd..2f5f41efd 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -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!