Quantcast

* Only change the angle conditionally, so it works properly when rotate minimap is turned off as well

James Whitehead Ii [07-19-07 - 14:05]
* Only change the angle conditionally, so it works properly when rotate minimap is turned off as well
Filename
TomTom.lua
diff --git a/TomTom.lua b/TomTom.lua
index a8fbf66..8114298 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -282,8 +282,10 @@ local function MinimapIcon_UpdateArrow(self, elapsed)
 	local icon = self.parent
 	local angle = Astrolabe:GetDirectionToIcon(icon)

-	local cring = MiniMapCompassRing:GetFacing()
-	angle = angle + cring
+	if GetCVar("rotateMinimap") == "1" then
+		local cring = MiniMapCompassRing:GetFacing()
+		angle = angle + cring
+	end

 	gomove(self, angle)
 end