Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Fix marker position rendering in compass mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdstel committed Oct 21, 2021
1 parent 1d6eade commit bd3de44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions overwolf/src/Minimap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,11 @@ export default function Minimap(props: IProps) {
continue;
}

const mapPos = renderAsCompass
? playerPos
: toMinimapCoordinate(mapCenterPos, marker.pos, ctx.canvas.width * zoomLevel, ctx.canvas.height * zoomLevel);
const mapPos = toMinimapCoordinate(
renderAsCompass ? playerPos : mapCenterPos,
marker.pos,
ctx.canvas.width * zoomLevel,
ctx.canvas.height * zoomLevel);
const icon = mapIconsCache.getIcon(marker.type, marker.category);
if (!icon) { continue; }
const imgPosCorrected = {
Expand Down

0 comments on commit bd3de44

Please sign in to comment.