Skip to content
Snippets Groups Projects
Commit b4d6370f authored by dg's avatar dg
Browse files

When minimap is hidden it wont react to clicks

git-svn-id: http://svn.net-core.org/repos/t-engine4@6003 51575b47-30f0-44d4-a5cc-537603b46e54
parent 718316e5
No related branches found
No related tags found
No related merge requests found
......@@ -1470,7 +1470,7 @@ function _M:displayPlayer(scale, bx, by)
end
function _M:displayMinimap(scale, bx, by)
if self.no_minimap then return end
if self.no_minimap then game.mouse:unregisterZone("minimap") return end
local map = game.level.map
......@@ -1494,6 +1494,7 @@ function _M:displayMinimap(scale, bx, by)
local desc_fct = function(button, mx, my, xrel, yrel, bx, by, event)
if event == "out" then self.mhandle.minimap = nil return
else self.mhandle.minimap = true end
if self.no_minimap then return end
game.tooltip_x, game.tooltip_y = 1, 1; game:tooltipDisplayAtMap(game.w, game.h, "Left mouse to move\nRight mouse to scroll\nMiddle mouse to show full map")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment