summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilesdl.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2012-09-09 15:29:50 +0200
committerRaphael Langella <raphael.langella@gmail.com>2012-09-09 15:29:50 +0200
commiteb3e8b2b0782699cd175e4e8d211384a8670a4f8 (patch)
tree12c80d3846ef9364c732505136422f2f0f112d94 /crawl-ref/source/tilesdl.cc
parentd75ce2fcaea5ed45ae2251cd58666fcd92d3deb1 (diff)
downloadcrawl-ref-eb3e8b2b0782699cd175e4e8d211384a8670a4f8.tar.gz
crawl-ref-eb3e8b2b0782699cd175e4e8d211384a8670a4f8.zip
Switch back to the inventory panel when leaving map mode (#6190).
Would be better to remember which one was active, but at least it's better than staying on the map command panel.
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r--crawl-ref/source/tilesdl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc
index 4759c8351f..e4d89b334d 100644
--- a/crawl-ref/source/tilesdl.cc
+++ b/crawl-ref/source/tilesdl.cc
@@ -248,6 +248,8 @@ void TilesFramework::draw_doll_edit()
void TilesFramework::set_map_display(const bool display)
{
m_map_mode_enabled = display;
+ if (!display)
+ m_region_tab->activate_tab(TAB_ITEM);
}
bool TilesFramework::get_map_display()