summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-08 13:53:37 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-08 13:53:37 +0000
commit3377d3cffd27809b4b5a4c2e74537836d734972b (patch)
treead4fec067af337bca8a8928094db72c0c42664fc /crawl-ref/source/item_use.cc
parent314b930ce693ec42f3486248b72deb0ebe7d3855 (diff)
downloadcrawl-ref-3377d3cffd27809b4b5a4c2e74537836d734972b.tar.gz
crawl-ref-3377d3cffd27809b4b5a4c2e74537836d734972b.zip
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
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 3 insertions, 0 deletions
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;
}