[nexuiz-commits] r6936 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jun 9 03:33:57 EDT 2009
Author: div0
Date: 2009-06-09 03:33:56 -0400 (Tue, 09 Jun 2009)
New Revision: 6936
Modified:
trunk/data/qcsrc/server/bots_scripting.qc
Log:
alos handle the case of no bot command being queued
Modified: trunk/data/qcsrc/server/bots_scripting.qc
===================================================================
--- trunk/data/qcsrc/server/bots_scripting.qc 2009-06-09 07:28:09 UTC (rev 6935)
+++ trunk/data/qcsrc/server/bots_scripting.qc 2009-06-09 07:33:56 UTC (rev 6936)
@@ -857,6 +857,8 @@
strunzone(cmd.bot_cmd_parm_string);
}
self.bot_cmd_next = cmd.bot_cmd_next;
+ if(cmd == self.bot_cmd_newest)
+ self.bot_cmd_newest = world;
remove(cmd);
return;
}
@@ -870,6 +872,9 @@
bot_cmd = world;
+ if(!self.bot_cmd_newest) // no command in the queue?
+ return;
+
if(self.bot_cmd_execution_index==0)
self.bot_cmd_execution_index=1;
More information about the nexuiz-commits
mailing list