aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJames Brown2003-07-12 10:19:18 +0000
committerJames Brown2003-07-12 10:19:18 +0000
commitcc23b25cdecc63c41f67f56983ccacabe5709a97 (patch)
tree2bf0002af914301e224a9610d742e2df97d427ac /scumm
parent72c8e0d96b1fddd4cb009d9249027db4ca11a265 (diff)
downloadscummvm-rg350-cc23b25cdecc63c41f67f56983ccacabe5709a97.tar.gz
scummvm-rg350-cc23b25cdecc63c41f67f56983ccacabe5709a97.tar.bz2
scummvm-rg350-cc23b25cdecc63c41f67f56983ccacabe5709a97.zip
Fix fix for 769896
svn-id: r8938
Diffstat (limited to 'scumm')
-rw-r--r--scumm/verbs.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp
index 9f31bd33f9..a0aa86cf40 100644
--- a/scumm/verbs.cpp
+++ b/scumm/verbs.cpp
@@ -27,6 +27,8 @@
#include "scumm.h"
#include "verbs.h"
+int egoVar; // TODO: Put this in V2 class?
+
enum {
kInventoryUpArrow = 4,
kInventoryDownArrow = 5,
@@ -150,7 +152,6 @@ void Scumm::checkV2MouseOver(ScummVM::Point pos) {
void Scumm::checkV2Inventory(int x, int y) {
int object = 0;
- static int egoVar;
y -= virtscr[2].topline;
@@ -208,6 +209,11 @@ void Scumm::redrawV2Inventory() {
_string[1].charset = 1;
+ if (_scummVars[VAR_EGO] != egoVar) {
+ egoVar = _scummVars[VAR_EGO];
+ _inventoryOffset = 0;
+ }
+
max_inv = getInventoryCount(_scummVars[VAR_EGO]) - _inventoryOffset;
if (max_inv > 4)
max_inv = 4;