From d9d519bcc5d4194b97c065ace254a9565f9fd9e9 Mon Sep 17 00:00:00 2001 From: mand1nga Date: Sat, 22 Aug 2009 18:18:38 +0000 Subject: [PATCH] Disable temporarily bot_vs_human when qty of teams > 2 git-svn-id: svn://svn.icculus.org/nexuiz/trunk@7495 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/teamplay.qc | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/data/qcsrc/server/teamplay.qc b/data/qcsrc/server/teamplay.qc index b5fa795fd..1d2ce2e0b 100644 --- a/data/qcsrc/server/teamplay.qc +++ b/data/qcsrc/server/teamplay.qc @@ -646,27 +646,20 @@ void CheckAllowedTeams (entity for_whom) if(!(g_domination && head.netname == "")) { if(head.team == COLOR_TEAM1) - { c1 = 0; - } - if(head.team == COLOR_TEAM2) - { + else if(head.team == COLOR_TEAM2) c2 = 0; - } - if(head.team == COLOR_TEAM3) - { + else if(head.team == COLOR_TEAM3) c3 = 0; - } - if(head.team == COLOR_TEAM4) - { + else if(head.team == COLOR_TEAM4) c4 = 0; - } } head = find(head, classname, teament_name); } } - // TODO: Balance quantity of bots across > 2 teams when bot_vs_human is set + // TODO: Balance quantity of bots across > 2 teams when bot_vs_human is set (and remove next line) + if(c3==-1&&c4==-1) if(cvar("bot_vs_human") && for_whom) { if(cvar("bot_vs_human") > 0) -- 2.39.2