From 38e709beb22febf691236de6d6c8d313f8dc5cb6 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 23 Oct 2006 13:40:23 +0000 Subject: Add missing code for enableInput opcode svn-id: r24473 --- engines/agos/script_e1.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'engines') 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() { -- cgit v1.2.3