summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/macro.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-19 22:56:46 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-19 22:56:46 +0000
commit7b52c20fd2613f4597a5b429c604369d393367ec (patch)
treeb955c5b143a0210879141bb8ad3258cf819b35fb /crawl-ref/source/macro.cc
parent5e4ca0912ae656b9e2a55b95027ebc6f483a01a6 (diff)
downloadcrawl-ref-7b52c20fd2613f4597a5b429c604369d393367ec.tar.gz
crawl-ref-7b52c20fd2613f4597a5b429c604369d393367ec.zip
Input buffer needs to be flushed if the first iteration of command
repetition is canceled. Repetitions of searching and go-nowhere weren't being interrupted. Wasn't generating activity interrupts for AI_FULL_MP and AI_FULL_HP. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2150 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/macro.cc')
-rw-r--r--crawl-ref/source/macro.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc
index 803252ad7e..a87e86172d 100644
--- a/crawl-ref/source/macro.cc
+++ b/crawl-ref/source/macro.cc
@@ -705,7 +705,7 @@ int getch_with_command_macros( void )
void flush_input_buffer( int reason )
{
ASSERT(reason != FLUSH_KEY_REPLAY_CANCEL ||
- crawl_state.is_replaying_keys());
+ crawl_state.is_replaying_keys() || crawl_state.cmd_repeat_start);
ASSERT(reason != FLUSH_ABORT_MACRO || is_processing_macro());