[Scummvm-cvs-logs] CVS: scummvm/scumm verbs.cpp,1.59,1.60
James Brown
ender at users.sourceforge.net
Sat Jul 12 02:46:04 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv13005/scumm
Modified Files:
verbs.cpp
Log Message:
Fix for bug 769896, update README a little
Index: verbs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/verbs.cpp,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- verbs.cpp 26 Jun 2003 01:46:41 -0000 1.59
+++ verbs.cpp 12 Jul 2003 09:45:10 -0000 1.60
@@ -150,11 +150,17 @@
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;
More information about the Scummvm-git-logs
mailing list