diff options
author | James Brown | 2003-07-12 09:45:10 +0000 |
---|---|---|
committer | James Brown | 2003-07-12 09:45:10 +0000 |
commit | dabe8799a126362b6a59514252600b022729cae7 (patch) | |
tree | b0cf7558685d5c4d8861be4504206ab651be2b12 /scumm | |
parent | d71b335259a58e13c0975de292b84cc3371b8ee5 (diff) | |
download | scummvm-rg350-dabe8799a126362b6a59514252600b022729cae7.tar.gz scummvm-rg350-dabe8799a126362b6a59514252600b022729cae7.tar.bz2 scummvm-rg350-dabe8799a126362b6a59514252600b022729cae7.zip |
Fix for bug 769896, update README a little
svn-id: r8935
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/verbs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp index ea9d361e81..9f31bd33f9 100644 --- a/scumm/verbs.cpp +++ b/scumm/verbs.cpp @@ -150,12 +150,18 @@ void Scumm::checkV2MouseOver(ScummVM::Point pos) { void Scumm::checkV2Inventory(int x, int y) { int object = 0; + static int egoVar; y -= virtscr[2].topline; if ((y < 34) || !(_mouseButStat & MBS_LEFT_CLICK)) return; + if (_scummVars[VAR_EGO] != egoVar) { + egoVar = _scummVars[VAR_EGO]; + _inventoryOffset = 0; + } + if (v2_mouseover_boxes[kInventoryUpArrow].rect.contains(x, y)) { _inventoryOffset -= 2; if (_inventoryOffset < 0) |