From 3377d3cffd27809b4b5a4c2e74537836d734972b Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 8 Jun 2007 13:53:37 +0000 Subject: Flush macro input buffer when fire command fails (Erik). Allow using the special sequence \{!more} in macros to disable -more- prompts while processing the macro expansion. Fixed a couple of off-by-one errors in the level-map. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1557 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 278be8f1b2..f35db305b5 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -48,6 +48,7 @@ #include "items.h" #include "itemname.h" #include "itemprop.h" +#include "macro.h" #include "misc.h" #include "monplace.h" #include "monstuff.h" @@ -1218,6 +1219,7 @@ void shoot_thing(void) if (you.berserker) { canned_msg(MSG_TOO_BERSERK); + flush_input_buffer( FLUSH_ON_FAILURE ); return; } @@ -1226,6 +1228,7 @@ void shoot_thing(void) if (item == ENDOFPACK) { mpr("No suitable missiles."); + flush_input_buffer( FLUSH_ON_FAILURE ); return; } -- cgit v1.2.3-54-g00ecf