]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/bot.qc
Remove remove()
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / bot.qc
index df0f36ab1a3d4a4b42e7381cd71a03af260563db..58feef6599c78e923c0d0fd0b31f715ee0518369 100644 (file)
@@ -391,7 +391,7 @@ void bot_clientdisconnect(entity this)
        this.playermodel_freeme = string_null;
        this.playerskin_freeme = string_null;
        if(this.bot_cmd_current)
-               remove(this.bot_cmd_current);
+               delete(this.bot_cmd_current);
        if(bot_waypoint_queue_owner==this)
                bot_waypoint_queue_owner = NULL;
 }
@@ -584,7 +584,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)))
        {