diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2012-08-12 19:14:09 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2012-08-12 19:15:37 -0600 |
commit | 963d729fdd72caa8f7dfea9519443f5744043805 (patch) | |
tree | 6ce5b8383fb1c3fa75ce30463a3cec6fbc0ead92 /crawl-ref/source/menu.cc | |
parent | 7c20da92a6cf068a490a1214aa1331d60967f8f9 (diff) | |
download | crawl-ref-963d729fdd72caa8f7dfea9519443f5744043805.tar.gz crawl-ref-963d729fdd72caa8f7dfea9519443f5744043805.zip |
Get ability menu to once again handle doing and describing abilities.
Previously it was only doing one or the other - a fact somehow missed in
my testing of the new ability menus.
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r-- | crawl-ref/source/menu.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index aa21376d1e..65a74001eb 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -2016,6 +2016,14 @@ int ToggleableMenu::pre_process(int key) webtiles_update_item(i); #endif + if (flags & MF_TOGGLE_ACTION) + { + if (menu_action == ACT_EXECUTE) + menu_action = ACT_EXAMINE; + else + menu_action = ACT_EXECUTE; + } + // Don't further process the key return 0; } |