From d277ce54ca486de202a418e1adb275f3b69a98e6 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 18 Nov 2016 17:39:08 +0100 Subject: [PATCH] Campaign: don't start the first round until player joined the game --- qcsrc/server/round_handler.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/round_handler.qc b/qcsrc/server/round_handler.qc index 3b11c5f9b6..8cc3295b9a 100644 --- a/qcsrc/server/round_handler.qc +++ b/qcsrc/server/round_handler.qc @@ -1,5 +1,6 @@ #include "round_handler.qh" +#include "campaign.qh" #include "command/vote.qh" #include "../common/util.qh" @@ -28,7 +29,7 @@ void round_handler_Think(entity this) if (this.cnt > 0) // countdown running { - if (this.canRoundStart()) + if (this.canRoundStart() && !(autocvar_g_campaign && !campaign_bots_may_start)) { if (this.cnt == this.count + 1) round_starttime = time + this.count; int f = this.cnt - 1; -- 2.39.2