X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fbot.qc;h=b2e20e776435478bf7454d3eadef79ce5e989e5f;hb=19ab1a2ba6824a03f8d263d27cc84dc7d54958ac;hp=851a1d9fcf0a1c31aa786cf6c12d97d3daf34894;hpb=e0d8a8246842aa6dbf9f15e527a806033b5af35a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/bot.qc b/qcsrc/server/bot/bot.qc index 851a1d9fc..b2e20e776 100644 --- a/qcsrc/server/bot/bot.qc +++ b/qcsrc/server/bot/bot.qc @@ -142,6 +142,8 @@ void bot_setnameandstuff() if(substring(readfile, 0, 1) == "#") continue; tokens = tokenizebyseparator(readfile, "\t"); + if(tokens == 0) + continue; s = argv(0); prio = 1; FOR_EACH_CLIENT(p) @@ -396,13 +398,13 @@ void bot_clientconnect() bot_setnameandstuff(); if(self.bot_forced_team==1) - self.team = COLOR_TEAM1; + self.team = FL_TEAM_1; else if(self.bot_forced_team==2) - self.team = COLOR_TEAM2; + self.team = FL_TEAM_2; else if(self.bot_forced_team==3) - self.team = COLOR_TEAM3; + self.team = FL_TEAM_3; else if(self.bot_forced_team==4) - self.team = COLOR_TEAM4; + self.team = FL_TEAM_4; else JoinBestTeam(self, FALSE, TRUE); @@ -423,13 +425,13 @@ void bot_removefromlargestteam() bestcount = 0; while (head) { - if(head.team == COLOR_TEAM1) + if(head.team == FL_TEAM_1) thiscount = c1; - else if(head.team == COLOR_TEAM2) + else if(head.team == FL_TEAM_2) thiscount = c2; - else if(head.team == COLOR_TEAM3) + else if(head.team == FL_TEAM_3) thiscount = c3; - else if(head.team == COLOR_TEAM4) + else if(head.team == FL_TEAM_4) thiscount = c4; else thiscount = 0;