From 7fbcd22e430fcc3db5bf8e09a6dc02b80adeda77 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 28 Apr 2008 19:43:31 +0000 Subject: 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 --- crawl-ref/source/invent.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/invent.cc') 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]; -- cgit v1.2.3-54-g00ecf