From: terencehill Date: Fri, 24 Jan 2014 14:33:03 +0000 (+0100) Subject: Bots that connect when a round is already started stay spectators until next round X-Git-Tag: xonotic-v0.8.0~126^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=19fd4257736c19505e4990b1152a9dc077e94097;p=xonotic%2Fxonotic-data.pk3dir.git Bots that connect when a round is already started stay spectators until next round --- diff --git a/qcsrc/server/mutators/gamemode_ca.qc b/qcsrc/server/mutators/gamemode_ca.qc index 8a6315c42..7aeba9282 100644 --- a/qcsrc/server/mutators/gamemode_ca.qc +++ b/qcsrc/server/mutators/gamemode_ca.qc @@ -160,6 +160,11 @@ MUTATOR_HOOKFUNCTION(ca_reset_map_players) FOR_EACH_CLIENT(self) { self.killcount = 0; + if(!self.caplayer && IS_BOT_CLIENT(self)) + { + self.team = -1; + self.caplayer = 1; + } if(self.caplayer) { self.classname = "player";