[nexuiz-commits] r6999 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Jun 12 05:33:00 EDT 2009
Author: div0
Date: 2009-06-12 05:33:00 -0400 (Fri, 12 Jun 2009)
New Revision: 6999
Modified:
trunk/data/qcsrc/server/bots_scripting.qc
Log:
barrier: only wait for bots that actually have commands
Modified: trunk/data/qcsrc/server/bots_scripting.qc
===================================================================
--- trunk/data/qcsrc/server/bots_scripting.qc 2009-06-12 08:21:27 UTC (rev 6998)
+++ trunk/data/qcsrc/server/bots_scripting.qc 2009-06-12 09:33:00 UTC (rev 6999)
@@ -343,7 +343,7 @@
print("Pause command parsing and bot ai until time is N from the last barrier. Pressed key will remain pressed");
break;
case BOT_CMD_BARRIER:
- print("Waits till all bots reach this command. Pressed key will remain pressed");
+ print("Waits till all bots that have a command queue reach this command. Pressed key will remain pressed");
break;
case BOT_CMD_TURN:
print("Look to the right or left N degrees. For turning to the left use positive numbers.");
@@ -512,8 +512,9 @@
{
FOR_EACH_CLIENT(cl) if(cl.isbot)
{
- if(cl.bot_barrier != 1)
- return CMD_STATUS_EXECUTING; // not all are at the barrier yet
+ if(cl.bot_cmdqueuebuf_allocated)
+ if(cl.bot_barrier != 1)
+ return CMD_STATUS_EXECUTING; // not all are at the barrier yet
}
// all bots hit the barrier!
@@ -1059,6 +1060,7 @@
FOR_EACH_CLIENT(cl) if(cl.isbot)
{
cl.bot_barrier = 0;
+ cl.bot_barrier_allowed = FALSE;
}
}
More information about the nexuiz-commits
mailing list