minimap/panel: consistent player coordinates

This commit is contained in:
greenya
2017-05-18 08:05:39 +02:00
committed by shagu
parent ad93d56d9f
commit 38581f724d
2 changed files with 7 additions and 5 deletions
+1 -3
View File
@@ -115,9 +115,7 @@ pfUI:RegisterModule("minimap", function ()
SetMapToCurrentZone()
local posX, posY = GetPlayerMapPosition("player")
if posX ~= 0 and posY ~= 0 then
local roundedX = ceil(posX * 1000)/10
local roundedY = ceil(posY * 1000)/10
pfUI.minimapCoordinates.text:SetText(roundedX..", "..roundedY)
pfUI.minimapCoordinates.text:SetText(round(posX * 100, 1) .. ", " .. round(posY * 100, 1))
else
pfUI.minimapCoordinates.text:SetText("|cffffaaaaN/A")
end