projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c29f53
)
Really add one bot per frame, just like the comment says. It should make server a...
author
terencehill <piuntn@gmail.com>
Tue, 22 Aug 2017 14:39:51 +0000
(16:39 +0200)
committer
terencehill <piuntn@gmail.com>
Wed, 23 Aug 2017 13:52:23 +0000
(15:52 +0200)
qcsrc/server/bot/default/bot.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/bot/default/bot.qc
b/qcsrc/server/bot/default/bot.qc
index 6cb24f0be03581e50e8f0fcb7d603b9376a2eb41..5bc86b84e14ca350c18d75493500cf7ca55da63a 100644
(file)
--- 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)
{