From 2b79f66136c544d35d775a899d65df7641b116f6 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sat, 19 Apr 2014 01:36:35 -0400 Subject: [PATCH] Fix map not disappearing when you press Escape --- osx/boe.actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osx/boe.actions.cpp b/osx/boe.actions.cpp index 9d908888a..6ccb5292f 100644 --- a/osx/boe.actions.cpp +++ b/osx/boe.actions.cpp @@ -1546,7 +1546,7 @@ bool handle_keystroke(sf::Event& event){ Key talk_chars[9] = {kb::L,kb::N,kb::J,kb::B,kb::S,kb::R,kb::D,kb::G,kb::A}; Key shop_chars[8] = {kb::A,kb::B,kb::C,kb::D,kb::E,kb::F,kb::G,kb::H}; - if(map_visible && isFrontWindow(mini_map) && event.key.code == kb::Escape + if(map_visible && event.key.code == kb::Escape && (overall_mode != MODE_TALKING) && (overall_mode != MODE_SHOPPING)) { mini_map.setVisible(false); map_visible = false;