]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bots that connect when a round is already started stay spectators until next round
authorterencehill <piuntn@gmail.com>
Fri, 24 Jan 2014 14:33:03 +0000 (15:33 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 24 Jan 2014 14:33:03 +0000 (15:33 +0100)
qcsrc/server/mutators/gamemode_ca.qc

index 8a6315c4236bd1673758253449af1889fe2e35e8..7aeba9282f299917e307b00d9103afd7e8ae8539 100644 (file)
@@ -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";