WoWInterface SVN zz_Coords

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 85 to Rev 84
    Reverse comparison

Rev 85 → Rev 84

trunk/zz_Coords/core.lua
42,12 → 42,9
playerCoords = "-, -"
mapID = C_Map.GetBestMapForUnit("player")
if(mapID) then
local pmp = C_Map.GetPlayerMapPosition(mapID,"player")
if(pmp) then
local x,y = pmp:GetXY()
if(x and y) then
playerCoords = format("%.1f, %.1f", x*100, y*100)
end
x,y = C_Map.GetPlayerMapPosition(mapID,"player"):GetXY()
if(x and y) then
playerCoords = format("%.1f, %.1f", x*100, y*100)
end
end
end