Browse Source

Correct search item panel offset

pull/882/head
Anders Jenbo 6 years ago
parent
commit
b459c8254b
  1. 10
      Source/automap.cpp

10
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);
}

Loading…
Cancel
Save