summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-03 16:05:09 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-03 16:05:09 +0000
commit2c742f802ea5ff493de7f73e7a90b68ac5fd830d (patch)
tree7f42627b6eb0d36344a4653c84365d86e5f195e8 /crawl-ref/source/invent.cc
parent50bbaa43b8206690ba627957e5c4b816e1aa6ba2 (diff)
downloadcrawl-ref-2c742f802ea5ff493de7f73e7a90b68ac5fd830d.tar.gz
crawl-ref-2c742f802ea5ff493de7f73e7a90b68ac5fd830d.zip
Apply caotto's Feawn evolution update patch in [2841648], with a few
tweaks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10615 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc18
1 files changed, 8 insertions, 10 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index ac3e7e8dd8..ee7ca7dae4 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -1000,13 +1000,6 @@ static bool _item_class_selected(const item_def &i, int selector)
case OSEL_FRUIT:
return is_fruit(i);
- // This is really dumb. I don't want to talk about it. -cao
- case OSEL_SOME_FRUIT:
-
- return is_fruit(i) && i.quantity >= 2;
-
-
-
case OSEL_WORN_ARMOUR:
return (itype == OBJ_ARMOUR && item_is_equipped(i));
@@ -1186,8 +1179,8 @@ static unsigned char _get_invent_quant( unsigned char keyin, int &quant )
// This function prompts the user for an item, handles the '?' and '*'
// listings, and returns the inventory slot to the caller (which if
-// must_exist is true (the default) will be an assigned item, with
-// a positive quantity.
+// must_exist is true, as it is by default, will be an assigned item,
+// with a positive quantity.
//
// It returns PROMPT_ABORT if the player hits escape.
// It returns PROMPT_GOT_SPECIAL if the player hits the "other_valid_char".
@@ -1636,7 +1629,9 @@ int prompt_invent_item( const char *prompt,
need_getch = false;
// Don't redraw if we're just going to display another listing
- need_redraw = (keyin != '?' && keyin != '*');
+ need_redraw = (keyin != '?' && keyin != '*')
+ && !(count && auto_list && isdigit(keyin));
+
need_prompt = need_redraw;
if (items.size())
@@ -1658,6 +1653,9 @@ int prompt_invent_item( const char *prompt,
need_prompt = false;
need_getch = false;
+
+ if (auto_list)
+ need_redraw = true;
}
else if (count == NULL && isdigit( keyin ))
{