]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Really add one bot per frame, just like the comment says. It should make server a...
authorterencehill <piuntn@gmail.com>
Tue, 22 Aug 2017 14:39:51 +0000 (16:39 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 23 Aug 2017 13:52:23 +0000 (15:52 +0200)
qcsrc/server/bot/default/bot.qc

index 6cb24f0be03581e50e8f0fcb7d603b9376a2eb41..5bc86b84e14ca350c18d75493500cf7ca55da63a 100644 (file)
@@ -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)
                        {