From cb62e7bf2d9797d74363c7350eaf631144d2d2a5 Mon Sep 17 00:00:00 2001 From: obligaron Date: Mon, 19 Jul 2021 16:42:59 +0200 Subject: [PATCH] Fix automap jiggling for player arrow --- Source/automap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/automap.cpp b/Source/automap.cpp index a52f842e8..5483539f2 100644 --- a/Source/automap.cpp +++ b/Source/automap.cpp @@ -275,8 +275,8 @@ void DrawAutomapPlr(const Surface &out, const Displacement &myPlayerOffset, int playerOffset = GetOffsetForWalking(player.AnimInfo, player._pdir); Point base = { - (playerOffset.deltaX * AutoMapScale / 100 / 2) + (myPlayerOffset.deltaX * AutoMapScale / 100 / 2) + (px - py) * AmLine16 + gnScreenWidth / 2, - (playerOffset.deltaY * AutoMapScale / 100 / 2) + (myPlayerOffset.deltaY * AutoMapScale / 100 / 2) + (px + py) * AmLine8 + (gnScreenHeight - PANEL_HEIGHT) / 2 + ((playerOffset.deltaX + myPlayerOffset.deltaX) * AutoMapScale / 100 / 2) + (px - py) * AmLine16 + gnScreenWidth / 2, + ((playerOffset.deltaY + myPlayerOffset.deltaY) * AutoMapScale / 100 / 2) + (px + py) * AmLine8 + (gnScreenHeight - PANEL_HEIGHT) / 2 }; if (CanPanelsCoverView()) {