aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-10-23 13:40:23 +0000
committerTravis Howell2006-10-23 13:40:23 +0000
commit38e709beb22febf691236de6d6c8d313f8dc5cb6 (patch)
treeea61feab9eadac1bc8e07fb7781a82737ee23e61 /engines
parentcff9d1ab810adb66633a7593dc48ea07e66b6766 (diff)
downloadscummvm-rg350-38e709beb22febf691236de6d6c8d313f8dc5cb6.tar.gz
scummvm-rg350-38e709beb22febf691236de6d6c8d313f8dc5cb6.tar.bz2
scummvm-rg350-38e709beb22febf691236de6d6c8d313f8dc5cb6.zip
Add missing code for enableInput opcode
svn-id: r24473
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/script_e1.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/engines/agos/script_e1.cpp b/engines/agos/script_e1.cpp
index b83e72ca7a..3339ffdbf0 100644
--- a/engines/agos/script_e1.cpp
+++ b/engines/agos/script_e1.cpp
@@ -535,14 +535,20 @@ void AGOSEngine::oe1_enableInput() {
// 258: enable input
_variableArray[500] = 0;
- for (int i = 120; i < 130; i++)
+ for (int i = 120; i != 130; i++)
disableBox(i);
- // XXX
- _lastHitArea = 0;
_verbHitArea = 0;
- _hitAreaSubjectItem = NULL;
- _hitAreaObjectItem = NULL;
+ _hitAreaSubjectItem = 0;
+ _hitAreaObjectItem = 0;
+
+ _dragFlag = 0;
+ _dragAccept = 0;
+ _dragCount = 0;
+ _dragMode = 0;
+
+ _lastHitArea3 = 0;
+ _lastHitArea = 0;
}
void AGOSEngine::oe1_setTime() {