X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fteamplay.qc;h=83f1d38568b969c75683d730659838f4240ceacc;hp=ff9438e76d84b205679a05982d5b8bc1eb0b57f3;hb=c1c5a398025611690a8d7d6bd64219ccf452e673;hpb=4b615d6ea3ee6794ea9368c782393c66ef55c170 diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index ff9438e76..83f1d3856 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -1,6 +1,7 @@ #include "teamplay.qh" #include "client.qh" +#include #include "race.qh" #include "scores.qh" #include "scores_rules.qh" @@ -496,8 +497,7 @@ entity TeamBalance_CheckAllowedTeams(entity for_whom) } // TODO: Balance quantity of bots across > 2 teams when bot_vs_human is set (and remove next line) - if (AvailableTeams() == 2) - if (autocvar_bot_vs_human && for_whom) + if (autocvar_bot_vs_human && AvailableTeams() == 2 && for_whom) { if (autocvar_bot_vs_human > 0) {