fixed for forced team
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / teamplay.qc
index d784c72d8fa64d0d7f4a234f5a370f5cb98cd1db..b9064c783b852a515586ade5e0826b3323380bf9 100644 (file)
@@ -803,7 +803,7 @@ float FindSmallestTeam(entity pl, float ignore_pl)
        if(c4 >= 0)
                totalteams = totalteams + 1;
 
-       if(cvar("bot_vs_human") && totalteams == 1)
+       if((cvar("bot_vs_human") || pl.team_forced > 0) && totalteams == 1)
                totalteams += 1;
 
        if(totalteams <= 1)