Browse Source

Correct search item panel offset

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

2
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 (PANELS_COVER) {
if (invflag || sbookflag) if (invflag || sbookflag)
x -= 160; x -= 160;
if (chrflag || questlog) if (chrflag || questlog)
x += 160; x += 160;
}
y -= AmLine8; y -= AmLine8;
DrawAutomapItem(x, y, COLOR_ITEM); DrawAutomapItem(x, y, COLOR_ITEM);
} }

Loading…
Cancel
Save