aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/various.cpp
diff options
context:
space:
mode:
authorKari Salminen2008-08-14 20:49:34 +0000
committerKari Salminen2008-08-14 20:49:34 +0000
commitc2c2e940d0fc3960529e757195190568adb34580 (patch)
treeb00ef8a15299a7ccad55613ce248627afc86e87b /engines/cine/various.cpp
parent63f31692133a085f9aaf9a0635afaa0cc62870d6 (diff)
downloadscummvm-rg350-c2c2e940d0fc3960529e757195190568adb34580.tar.gz
scummvm-rg350-c2c2e940d0fc3960529e757195190568adb34580.tar.bz2
scummvm-rg350-c2c2e940d0fc3960529e757195190568adb34580.zip
Fix for bugging moving at the bottom of the ocean when trying to free the girl from the ropes and swimming to the surface. Some global variables related to mouse position weren't being updated in executePlayerInput, now they are and things seem to work. Also enables moving in the labyrinth arcade sequence at the palace.
svn-id: r33872
Diffstat (limited to 'engines/cine/various.cpp')
-rw-r--r--engines/cine/various.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index a3359287ce..e96e03b03c 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -2033,6 +2033,14 @@ uint16 executePlayerInput(void) {
}
}
+ // Update Operation Stealth specific global variables.
+ // This fixes swimming at the bottom of the ocean after
+ // having been thrown into it with the girl.
+ if (g_cine->getGameType() == Cine::GType_OS) {
+ globalVars[251] = globalVars[VAR_MOUSE_X_POS];
+ globalVars[252] = globalVars[VAR_MOUSE_Y_POS];
+ }
+
return var_5E;
}