diff options
author | Neil Moore <neil@s-z.org> | 2012-07-05 01:34:04 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-07-05 02:36:01 -0400 |
commit | 33a2b7e32a922aaae6c83d1cfbe31625ce1c1014 (patch) | |
tree | 3e8f04062c4c73e4dc014c6551180ce151af0df1 /crawl-ref/source/invent.h | |
parent | e6c9c25219475abd3e9fb94264b8c822e228c5b0 (diff) | |
download | crawl-ref-33a2b7e32a922aaae6c83d1cfbe31625ce1c1014.tar.gz crawl-ref-33a2b7e32a922aaae6c83d1cfbe31625ce1c1014.zip |
Don't break autopickup menu with easy_exit_menu = true.
Because we used MF_EASY_EXIT as a hack for regenerating the menu,
the user's easy_exit_menu option would prevent leaving the menu.
Instead use lastch == CONTROL('R') to indicate that the menu should
be re-entered, and respect the user's easy_exit_menu setting.
Unfortunately, easy_exit_menu was disallowed when anything is selected,
to prevent leaving e.g. the drop menu too soon. Override this behaviour
for MT_KNOW inventory menus.
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r-- | crawl-ref/source/invent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h index 055355ee90..6156ddba9f 100644 --- a/crawl-ref/source/invent.h +++ b/crawl-ref/source/invent.h @@ -169,6 +169,7 @@ protected: bool process_key(int key); void do_preselect(InvEntry *ie); virtual bool is_selectable(int index) const; + virtual bool allow_easy_exit() const; protected: menu_type type; |