aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-03-06 23:01:20 +0200
committerEugene Sandulenko2014-03-06 23:01:39 +0200
commitd22d20077b15e9d45a5892380681380d4f84fd3d (patch)
tree4c0ecadbe2983a4982f0a68f465fd62f3549d9cc /engines
parenta3db3230b22b359d9d4ec2b331bf91850f50eb3e (diff)
downloadscummvm-rg350-d22d20077b15e9d45a5892380681380d4f84fd3d.tar.gz
scummvm-rg350-d22d20077b15e9d45a5892380681380d4f84fd3d.tar.bz2
scummvm-rg350-d22d20077b15e9d45a5892380681380d4f84fd3d.zip
FULLPIPE: Implement sceneHandler19_updateNumRides()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scenes/scene18and19.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp
index cc34cffb3c..ea816bb5d1 100644
--- a/engines/fullpipe/scenes/scene18and19.cpp
+++ b/engines/fullpipe/scenes/scene18and19.cpp
@@ -555,7 +555,18 @@ int sceneHandler18(ExCommand *cmd) {
}
void sceneHandler19_updateNumRides() {
- warning("STUB: sceneHandler19_updateNumRides()");
+ int numRides = g_fp->getGameLoaderGameVar()->getSubVarByName("OBJSTATES")->getSubVarAsInt(sO_DudeSwinged) + 1;
+
+ if (numRides > 1) {
+ g_fp->setObjectState(sO_Girl, g_fp->getObjectEnumState(sO_Girl, sO_IsSwinging));
+
+ g_vars->scene18_var23 = 1;
+ g_vars->scene18_var25++;
+
+ numRides = 0;
+ }
+
+ g_fp->getGameLoaderGameVar()->getSubVarByName("OBJSTATES")->setSubVarAsInt(sO_DudeSwinged, numRides);
}
int sceneHandler19(ExCommand *cmd) {