From: Rudolf Polzer Date: Mon, 24 Sep 2012 09:48:23 +0000 (+0200) Subject: fix a bot scripting issue :) X-Git-Tag: xonotic-v0.7.0~219 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e24739c7c75cd030c2d4a70aa222ff515383ca02;p=xonotic%2Fxonotic-data.pk3dir.git fix a bot scripting issue :) --- diff --git a/qcsrc/server/bot/scripting.qc b/qcsrc/server/bot/scripting.qc index 5752e2f49..ef7170563 100644 --- a/qcsrc/server/bot/scripting.qc +++ b/qcsrc/server/bot/scripting.qc @@ -18,6 +18,8 @@ void bot_queuecommand(entity bot, string cmdstring) { bot.bot_cmdqueuebuf = buf_create(); bot.bot_cmdqueuebuf_allocated = TRUE; + bot.bot_cmdqueuebuf_start = 0; + bot.bot_cmdqueuebuf_end = 0; } bufstr_set(bot.bot_cmdqueuebuf, bot.bot_cmdqueuebuf_end, cmdstring); @@ -1194,6 +1196,7 @@ void bot_resetqueues() FOR_EACH_CLIENT(cl) if(cl.isbot) { + cl.bot_cmd_execution_index = 0; if(cl.bot_cmdqueuebuf_allocated) bot_clearqueue(cl); // also, cancel all barriers