Skip to content

Commit

Permalink
still fixing...
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazza committed Jun 18, 2020
1 parent 95e3c28 commit dc63bdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/MinimapIcon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ local function createMinimapIcon()
if quadTable[q] then
x, y = x*w, y*h
else
local diagRadiusW = sqrt(2*(w)^2)-10
local diagRadiusH = sqrt(2*(h)^2)-10
x = max(-w, min(x*diagRadiusW, w))
y = max(-h, min(y*diagRadiusH, h))
local diagRadiusW = math.sqrt(2*(w)^2)-10
local diagRadiusH = math.sqrt(2*(h)^2)-10
x = math.max(-w, math.min(x*diagRadiusW, w))
y = math.max(-h, math.min(y*diagRadiusH, h))
end
-- end borrow

Expand Down

0 comments on commit dc63bdc

Please sign in to comment.