From 0f8cd49c9c18260156782afc65bbea7b30a92804 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Fri, 27 Nov 2009 01:40:34 -0800 Subject: 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). --- crawl-ref/source/shopping.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/shopping.cc') diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index c9ecd853be..8b5d04529e 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -2509,7 +2509,7 @@ void ShoppingList::display() ShoppingListMenu shopmenu; shopmenu.set_tag("shop"); shopmenu.menu_action = travelable ? Menu::ACT_EXECUTE : Menu::ACT_EXAMINE; - shopmenu.allow_toggle = travelable; + shopmenu.action_cycle = Menu::CYCLE_TOGGLE; std::string title = "thing"; MenuEntry *mtitle = new MenuEntry(title, MEL_TITLE); -- cgit v1.2.3-54-g00ecf