]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/bot.qc
Fix bot_vs_human and CTF HUD
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / bot.qc
index 8707a03bd4d9b7d0070f6a71b6503f2ed9aef5cc..9418074284d7bf4ff974f20771ff92f6b4b79c73 100644 (file)
@@ -573,7 +573,7 @@ float bot_fixcount()
        // But don't remove bots immediately on level change, as the real players
        // usually haven't rejoined yet
        bots_would_leave = false;
-       if (teamplay && autocvar_bot_vs_human && (c3==-1 && c4==-1))
+       if (teamplay && autocvar_bot_vs_human && AvailableTeams() == 2)
                bots = min(ceil(fabs(autocvar_bot_vs_human) * activerealplayers), maxclients - realplayers);
        else if ((realplayers || autocvar_bot_join_empty || (currentbots > 0 && time < 5)))
        {