From 0c3acdf57b857a44592d7ecd11b8a5be35c38578 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 15 Nov 2014 01:44:18 +0100 Subject: [PATCH] Don't execute bot code when bots are forced observer. In CA it allowed bots added in the middle of a round to join the game at the first jump (!). --- qcsrc/server/bot/bot.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/bot/bot.qc b/qcsrc/server/bot/bot.qc index b93d87ad2..40b769ddd 100644 --- a/qcsrc/server/bot/bot.qc +++ b/qcsrc/server/bot/bot.qc @@ -43,7 +43,7 @@ void bot_think() //self.bot_painintensity = self.bot_painintensity + self.bot_oldhealth - self.health; //self.bot_painintensity = bound(0, self.bot_painintensity, 100); - if (autocvar_g_campaign && !campaign_bots_may_start) + if (!IS_PLAYER(self) || (autocvar_g_campaign && !campaign_bots_may_start)) { self.bot_nextthink = time + 0.5; return; -- 2.39.2