From 526885f70d1ac8bad795ac626355cabf958cacda Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Fri, 5 Oct 2012 15:17:10 -0300 Subject: [PATCH] Fix issue #14 --- modules/game_interface/gameinterface.lua | 1 + src/otclient/mapview.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index cf5247e0..914c0bd1 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -70,6 +70,7 @@ function bindKeys() g_keyboard.bindKeyDown('Ctrl+W', function() g_map.cleanTexts() modules.game_textmessage.clearMessages() end, gameRootPanel) g_keyboard.bindKeyDown('Ctrl+;', toggleDash, gameRootPanel) g_keyboard.bindKeyDown('Ctrl+.', toggleAspectRatio, gameRootPanel) + g_keyboard.bindKeyDown('Ctrl+N', function() gameMapPanel:setDrawTexts(not gameMapPanel:isDrawingTexts()) end, gameRootPanel) end function terminate() diff --git a/src/otclient/mapview.cpp b/src/otclient/mapview.cpp index b8fe8bc6..ac13c401 100644 --- a/src/otclient/mapview.cpp +++ b/src/otclient/mapview.cpp @@ -378,7 +378,7 @@ void MapView::updateVisibleTilesCache(int start) m_spiral.clear(); } - if(start == 0 && m_drawTexts && m_viewMode <= NEAR_VIEW) + if(start == 0 && m_viewMode <= NEAR_VIEW) m_cachedFloorVisibleCreatures = g_map.getSpectators(cameraPosition, false); }