From b459c8254bb04c5585daca2a2cc1096d2a524fa8 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 13 Oct 2020 02:00:34 +0200 Subject: [PATCH] Correct search item panel offset --- Source/automap.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/automap.cpp b/Source/automap.cpp index d11a8ed45..7e7e6057e 100644 --- a/Source/automap.cpp +++ b/Source/automap.cpp @@ -545,10 +545,12 @@ void SearchAutomapItem() x = (ScrollInfo._sxoff * AutoMapScale / 100 >> 1) + (px - py) * AmLine16 + 384; y = (ScrollInfo._syoff * AutoMapScale / 100 >> 1) + (px + py) * AmLine8 + 336; - if (invflag || sbookflag) - x -= 160; - if (chrflag || questlog) - x += 160; + if (PANELS_COVER) { + if (invflag || sbookflag) + x -= 160; + if (chrflag || questlog) + x += 160; + } y -= AmLine8; DrawAutomapItem(x, y, COLOR_ITEM); }