From 64f02fb25661ce6301c0c4e30dfb3457dd2aa531 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 12 Apr 2022 18:32:11 +0200 Subject: [PATCH] Campaign: make work resetmatch without entering warmup (if enabled in the server) --- qcsrc/server/command/vote.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 42d78dd0a..e94880c78 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -486,7 +486,7 @@ void ReadyRestart(bool forceWarmupEnd) if (MUTATOR_CALLHOOK(ReadyRestart_Deny) || intermission_running || race_completing) localcmd("restart\n"); else localcmd("\nsv_hook_readyrestart\n"); - if(forceWarmupEnd) + if(forceWarmupEnd || autocvar_g_campaign) warmup_stage = 0; // forcefully end warmup and go to match stage else warmup_stage = cvar("g_warmup"); // go into warmup if it's enabled, otherwise restart into match stage -- 2.39.2