Browse Source

fix coords jumping when in inventory

pull/2678/head
qndel 5 years ago committed by Anders Jenbo
parent
commit
c59950edc6
  1. 12
      Source/cursor.cpp

12
Source/cursor.cpp

@ -276,17 +276,9 @@ void CheckCursMove()
if (CanPanelsCoverView()) {
if (chrflag || QuestLogIsOpen) {
if (sx >= gnScreenWidth / 2) { /// BUGFIX: (sx >= gnScreenWidth / 2) (fixed)
sx -= gnScreenWidth / 4;
} else {
sx = 0;
}
sx -= gnScreenWidth / 4;
} else if (invflag || sbookflag) {
if (sx <= gnScreenWidth / 2) {
sx += gnScreenWidth / 4;
} else {
sx = 0;
}
sx += gnScreenWidth / 4;
}
}
if (sy > PANEL_TOP - 1 && MousePosition.x >= PANEL_LEFT && MousePosition.x < PANEL_LEFT + PANEL_WIDTH && track_isscrolling()) {

Loading…
Cancel
Save