diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-09 21:35:56 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-09 21:35:56 +0000 |
commit | 45907051a75eb3c184050202066d4ea419ea38c5 (patch) | |
tree | 9ed7e29e2e461443ab21d4fd92f0fd316a94cabd /crawl-ref/source | |
parent | e3af78b8bb3ad47ea17162e6ef591ca881f0370e (diff) | |
download | crawl-ref-45907051a75eb3c184050202066d4ea419ea38c5.tar.gz crawl-ref-45907051a75eb3c184050202066d4ea419ea38c5.zip |
Call flush_prev_message() in prompt_invent_item().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9399 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/invent.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/item_use.cc | 1 | ||||
-rw-r--r-- | crawl-ref/source/spl-book.cc | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index aa7a0f7016..014054a747 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -1449,6 +1449,8 @@ int prompt_invent_item( const char *prompt, if (need_prompt) mpr(prompt, MSGCH_PROMPT); + else + flush_prev_message(); if (need_getch) keyin = get_ch(); diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 94bffc1521..5edbe9ee99 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4631,7 +4631,6 @@ static void handle_read_book(int item_slot) static bool _scroll_modify_item(item_def scroll) { ASSERT(scroll.base_type == OBJ_SCROLLS); - flush_prev_message(); // Get the slot of the scroll just read. int item_slot = scroll.slot; diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index a7abd01d38..7f6c98f44e 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -1075,7 +1075,6 @@ static int _which_spellbook( void ) mprf("You can memorise %d more level%s of spells.", avail_levels, (avail_levels > 1) ? "s" : "" ); - flush_prev_message(); book = prompt_invent_item("Memorise from which spellbook?", MT_INVLIST, OSEL_MEMORISE ); |