Fix an issue that was causing a WORLD_MAP_UPDATE race condition
James Whitehead II [02-27-11 - 10:57]
Fix an issue that was causing a WORLD_MAP_UPDATE race condition
diff --git a/TomTom.lua b/TomTom.lua
index cbb7583..74b5ad9 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -242,7 +242,7 @@ end
function TomTom:GetCurrentPlayerPosition()
-- Try to get the position without 'flipping' the map
- local m, f, x, y = astrolabe:GetUnitPosition("player", false)
+ local m, f, x, y = astrolabe:GetUnitPosition("player", true)
if m and x and y and not (x <= 0 or y <= 0) then
local floors = astrolabe:GetNumFloors(m)
local floor = floors == 0 and 0 or 1