diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-31 01:07:33 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-31 01:07:33 +0000 |
commit | 51cf2e590f33e894236ab640f2ffa58aff3a92ec (patch) | |
tree | a4867edae9afa6041faf53de9fe32ccfc066fd1e /crawl-ref/source/menu.cc | |
parent | c6f2e85b44fe574cff0a59607fe1b5a366954b62 (diff) | |
download | crawl-ref-51cf2e590f33e894236ab640f2ffa58aff3a92ec.tar.gz crawl-ref-51cf2e590f33e894236ab640f2ffa58aff3a92ec.zip |
drop_filter can now match against the same keywords as menu_colour, minus the
identification status and chunk/corpse information.
drop_filter now defaults to useless_item
You can prevent an init file variable from being changed by turning it into a
constant.
Clear variables and aliases when resetting the game options.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8043 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r-- | crawl-ref/source/menu.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index 74507803e2..6daa92f940 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -675,7 +675,7 @@ bool Menu::is_selectable(int item) const if (select_filter.empty()) return (true); - std::string text = items[item]->get_text(); + std::string text = items[item]->get_filter_text(); for (int i = 0, count = select_filter.size(); i < count; ++i) { if (select_filter[i].matches(text)) |