From d9a2018726492b555457ec85139a401cf331ab0f Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 7 Dec 2006 10:19:25 +0000 Subject: [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 --- crawl-ref/source/invent.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/invent.cc') 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 )) { -- cgit v1.2.3-54-g00ecf