diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-01 00:01:19 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-01 00:01:19 +0000 |
commit | eb4d97db722cadcfa25a0221e3db4535f480d18b (patch) | |
tree | fa95d98e7e8a1d1a81818310042ad1e0d6b7c03f /crawl-ref/source/acr.cc | |
parent | 2fbcfdf08656a6d5fea6f24cf42ab223f7b0934c (diff) | |
download | crawl-ref-eb4d97db722cadcfa25a0221e3db4535f480d18b.tar.gz crawl-ref-eb4d97db722cadcfa25a0221e3db4535f480d18b.zip |
Fix bug #2478713: do previous command again (`) was taking an additional turn
during which monsters could act.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8068 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 960b612392..44fa192e5c 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1614,6 +1614,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()) |