From c57ef94841b595d5db77131d9f357af6498f4192 Mon Sep 17 00:00:00 2001 From: Ethan Centaurai Date: Fri, 15 Mar 2019 21:43:03 +0000 Subject: [PATCH] Compass: Fix an error when rotating the compass in a dungeon. See #32 Co-Authored-By: Arieh Glazer --- Modules/Compass.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Compass.lua b/Modules/Compass.lua index c92c0fe..7c1851a 100755 --- a/Modules/Compass.lua +++ b/Modules/Compass.lua @@ -26,9 +26,10 @@ local rotateMinimap local frame local function repositionCompass() local angle = 0 + local facing = GetPlayerFacing() or 0 if rotateMinimap == "1" then - angle = -GetPlayerFacing() or angle + angle = -facing or angle end local radius = Compass.db.profile.radius