From bfa7d7269dd46c67dd56e9e402ec252880f884a6 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 1 Jan 2009 00:54:21 +0000 Subject: Merge r8068 fix to bug #2478713: do previous command again (`) was wasting a turn during which monsters had an extra chance to react. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@8069 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 59df526ad9..0c34f57f08 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1539,6 +1539,12 @@ static void _input() // the keys to repeat are recorded. if (cmd == CMD_REPEAT_CMD) return; + + // If the command was CMD_PREV_CMD_AGAIN then _input() has been + // recursively called by _do_prev_cmd_again() via process_command() + // to re-do the command, so there's nothing more to do. + if (cmd == CMD_PREV_CMD_AGAIN) + return; } if (need_to_autoinscribe()) -- cgit v1.2.3