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; x = (ScrollInfo._sxoff * AutoMapScale / 100 >> 1) + (px - py) * AmLine16 + 384;
y = (ScrollInfo._syoff * AutoMapScale / 100 >> 1) + (px + py) * AmLine8 + 336; y = (ScrollInfo._syoff * AutoMapScale / 100 >> 1) + (px + py) * AmLine8 + 336;
if (invflag || sbookflag) if (PANELS_COVER) {
x -= 160; if (invflag || sbookflag)
if (chrflag || questlog) x -= 160;
x += 160; if (chrflag || questlog)
x += 160;
}
y -= AmLine8; y -= AmLine8;
DrawAutomapItem(x, y, COLOR_ITEM); DrawAutomapItem(x, y, COLOR_ITEM);
} }

Loading…
Cancel
Save