From: terencehill Date: Tue, 29 Nov 2016 17:57:11 +0000 (+0100) Subject: Fix "bot_cmd X pause" command not always working X-Git-Tag: xonotic-v0.8.2~388^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cdcebe9d94e610bdbc6830effea65ea96fbc0502;p=xonotic%2Fxonotic-data.pk3dir.git Fix "bot_cmd X pause" command not always working --- diff --git a/qcsrc/server/bot/default/scripting.qc b/qcsrc/server/bot/default/scripting.qc index 9f29a2217..9a7997a5a 100644 --- a/qcsrc/server/bot/default/scripting.qc +++ b/qcsrc/server/bot/default/scripting.qc @@ -485,6 +485,7 @@ float bot_cmd_impulse(entity this) float bot_cmd_continue(entity this) { + bot_relinkplayerlist(); this.bot_exec_status &= ~BOT_EXEC_STATUS_PAUSED; return CMD_STATUS_FINISHED; } @@ -991,6 +992,7 @@ float bot_cmd_pause(entity this) this.movement = '0 0 0'; this.bot_cmd_keys = BOT_CMD_KEY_NONE; + bot_clear(this); this.bot_exec_status |= BOT_EXEC_STATUS_PAUSED; return CMD_STATUS_FINISHED; }