Fix map not disappearing when you press Escape

This commit is contained in:
2014-04-19 01:36:35 -04:00
parent ef58cd0601
commit 2b79f66136

View File

@@ -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;