summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-27 01:40:34 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-27 01:40:34 -0800
commit0f8cd49c9c18260156782afc65bbea7b30a92804 (patch)
tree47f6395d1ccb9269f3b8e269a0bb22b72230e348 /crawl-ref/source/stash.cc
parent3e6a77f46bac1b303645b7391f72e86c882986c9 (diff)
downloadcrawl-ref-0f8cd49c9c18260156782afc65bbea7b30a92804.tar.gz
crawl-ref-0f8cd49c9c18260156782afc65bbea7b30a92804.zip
Add third menu action type ACT_MISC
To the menu actions ACT_EXECUTE and ACT_EXAMINE add the third action type ACT_MISC, for things like deleting menu entries. The member "allow_toggle" has been changed to "action_cycle", with the possible values CYCLE_NONE (default) , CYCLE_TOGGLE (allow_toggle == true), and CYCLE_CYCLE (cycle through all three possible action types).
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index 7c403a1a98..1c4bddfbc9 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -1863,7 +1863,7 @@ bool StashTracker::display_search_results(
StashSearchMenu stashmenu(sort_style);
stashmenu.set_tag("stash");
stashmenu.can_travel = travelable;
- stashmenu.allow_toggle = true;
+ stashmenu.action_cycle = Menu::CYCLE_TOGGLE;
stashmenu.menu_action = Menu::ACT_EXECUTE;
std::string title = "match";