summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-07 10:19:25 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-07 10:19:25 +0000
commitd9a2018726492b555457ec85139a401cf331ab0f (patch)
treed40a1793e1a5109a0ffe8f3362b8ecc3f7b6ebf8 /crawl-ref/source/invent.cc
parent1c4332cbef95fdc87d42e34043129f20f210850e (diff)
downloadcrawl-ref-d9a2018726492b555457ec85139a401cf331ab0f.tar.gz
crawl-ref-d9a2018726492b555457ec85139a401cf331ab0f.zip
[1610676] Fixed confirmation inscriptions not working with auto_list.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@588 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 7aa9b5c2c8..b4a267f3c6 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -820,20 +820,20 @@ int prompt_invent_item( const char *prompt,
NULL,
&items );
+
+ need_getch = false;
+
+ // Don't redraw if we're just going to display another listing
+ need_redraw = (keyin != '?' && keyin != '*');
+ need_prompt = need_redraw;
+
if (items.size())
{
if (count)
*count = items[0].quantity;
redraw_screen();
mesclr( true );
- return letter_to_index( keyin );
}
-
- need_getch = false;
-
- // Don't redraw if we're just going to display another listing
- need_redraw = (keyin != '?' && keyin != '*');
- need_prompt = need_redraw;
}
else if (count != NULL && isdigit( keyin ))
{