Skip to content

Commit

Permalink
Compass: Fix an error when rotating the compass in a dungeon.
Browse files Browse the repository at this point in the history
See #32

Co-Authored-By: Arieh Glazer <arieh@arieh.co.il>
  • Loading branch information
Ethan Centaurai and Arieh Glazer committed Mar 15, 2019
1 parent 3a74cad commit c57ef94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/Compass.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c57ef94

Please sign in to comment.