From: terencehill Date: Tue, 22 Aug 2017 14:39:51 +0000 (+0200) Subject: Really add one bot per frame, just like the comment says. It should make server a... X-Git-Tag: xonotic-v0.8.5~2516 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aabbf24d3c1bbe2ebbef2efa80933b8a6d6f84fd;p=xonotic%2Fxonotic-data.pk3dir.git Really add one bot per frame, just like the comment says. It should make server a bit more responsive on map start and maybe fixes bots appearing in the scoreboard as spectators with minplayers > 0 --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 6cb24f0be..5bc86b84e 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -630,8 +630,7 @@ float bot_fixcount() // only add one bot per frame to avoid utter chaos if(time > botframe_nextthink) { - //dprint(ftos(bots), " ? ", ftos(currentbots), "\n"); - while (currentbots < bots) + if (currentbots < bots) { if (bot_spawn() == NULL) {