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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@185 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1c558706
No related branches found
No related tags found
No related merge requests found
......@@ -173,9 +173,9 @@ function _M:display()
-- Display a tooltip if available
local mx, my = core.mouse.get()
local tmx, tmy = self.level.map:getMouseTile(mx, my)
local tt = self.level.map:checkAllEntities(tmx, tmy, "tooltip")
if tt then
self.tooltip:set(tt)
local tt = self.level.map:checkEntity(tmx, tmy, Map.ACTOR, "tooltip") or self.level.map:checkEntity(tmx, tmy, Map.OBJECT, "tooltip") or self.level.map:checkEntity(tmx, tmy, Map.TERRAIN, "tooltip")
if tt and self.level.map.seens(tmx, tmy) then
self.tooltip:set("%s", tt)
local t = self.tooltip:display()
mx = mx - self.tooltip.w
my = my - self.tooltip.h
......
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