Quantcast
WoWInterface: SVN - zz_Coords - Path Comparison - / Rev 84 and / Rev 85

WoWInterface SVN zz_Coords

Compare Revisions

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

Rev 84 → Rev 85

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