summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-28 19:43:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-28 19:43:31 +0000
commit7fbcd22e430fcc3db5bf8e09a6dc02b80adeda77 (patch)
treedc6be651f1132a3e33a0e8b4cd8d428dfe29f10e /crawl-ref/source/invent.cc
parentb30be80f8944e4ca675add68e8d769788f00cd7d (diff)
downloadcrawl-ref-7fbcd22e430fcc3db5bf8e09a6dc02b80adeda77.tar.gz
crawl-ref-7fbcd22e430fcc3db5bf8e09a6dc02b80adeda77.zip
Fix sort_menus option to let "any" override the default "pickup" setting
and still use any as "anything but those already defined" when needed. (If that makes any sense.) Remove need for prayer for Vehumet's prayer boost effects. I admit I'm not entirely convinced of this change myself, but currently the problem is that there's hardly ever any reason *not* to pray. What we'd need instead are sensible drawbacks... git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4757 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index cfe295166b..0674a06890 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -534,7 +534,7 @@ void init_item_sort_comparators(item_sort_comparators &list,
const menu_sort_condition *InvMenu::find_menu_sort_condition() const
{
- for (int i = 0, size = Options.sort_menus.size(); i < size; ++i)
+ for (int i = Options.sort_menus.size() - 1; i >= 0; --i)
if (Options.sort_menus[i].matches(type))
return &Options.sort_menus[i];