]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Do the team check properly
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 7 Sep 2010 00:58:01 +0000 (03:58 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 7 Sep 2010 00:58:01 +0000 (03:58 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 728580fea8716016a7871cc493ceee6c0e62c018..562b6c741bfdaf0cc58d8690ba7d776d750d962a 100644 (file)
@@ -96,7 +96,7 @@ void Vore_AI()
        {
                // the higher the skill, the more the bot will kick in your stomack
                if(skill >= random_try)
-               if(self.team != self.eater.team) // if someone from the same team somehow made it in the belly, don't kick the eater
+               if not(teams_matter && self.team == self.eater.team) // if someone from the same team somehow made it in the belly, don't kick the eater
                        self.BUTTON_ATCK = TRUE; // kick
 
                self.decide_delay2 = time + decide_prey; // time before the bot decides what to do with their predator