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

Commit bd3de44

Browse files
committed
Fix marker position rendering in compass mode
1 parent 1d6eade commit bd3de44

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

overwolf/src/Minimap.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,11 @@ export default function Minimap(props: IProps) {
208208
continue;
209209
}
210210

211-
const mapPos = renderAsCompass
212-
? playerPos
213-
: toMinimapCoordinate(mapCenterPos, marker.pos, ctx.canvas.width * zoomLevel, ctx.canvas.height * zoomLevel);
211+
const mapPos = toMinimapCoordinate(
212+
renderAsCompass ? playerPos : mapCenterPos,
213+
marker.pos,
214+
ctx.canvas.width * zoomLevel,
215+
ctx.canvas.height * zoomLevel);
214216
const icon = mapIconsCache.getIcon(marker.type, marker.category);
215217
if (!icon) { continue; }
216218
const imgPosCorrected = {

0 commit comments

Comments
 (0)