Skip to content
Snippets Groups Projects
Commit 273d692c authored by DarkGod's avatar DarkGod
Browse files

fix

parent f90c7a5f
No related branches found
No related tags found
No related merge requests found
......@@ -845,6 +845,7 @@ end
--- Get the screen position corresponding to a tile
function _M:getTileToScreen(tx, ty)
if not tx or not ty then return nil, nil end
local x = (tx - self.mx) * self.tile_w * self.zoom + self.display_x
local y = (ty - self.my + util.hexOffset(tx)) * self.tile_h * self.zoom + self.display_y
return x, y
......
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