aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-28 11:43:35 +0200
committerEugene Sandulenko2013-12-28 14:17:49 +0200
commit8b308be18a699237b61760b61afa1dbc0cd5bc7a (patch)
treed3d31ca75a2268da49063d82d7ba14c82d4ef405
parent0238e20c3687f0d3c4d6833d26ee3e27d9580743 (diff)
downloadscummvm-rg350-8b308be18a699237b61760b61afa1dbc0cd5bc7a.tar.gz
scummvm-rg350-8b308be18a699237b61760b61afa1dbc0cd5bc7a.tar.bz2
scummvm-rg350-8b308be18a699237b61760b61afa1dbc0cd5bc7a.zip
FULLPIPE: More code to scene11
-rw-r--r--engines/fullpipe/scenes/scene11.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene11.cpp b/engines/fullpipe/scenes/scene11.cpp
index 864d0eb5ff..ead3777339 100644
--- a/engines/fullpipe/scenes/scene11.cpp
+++ b/engines/fullpipe/scenes/scene11.cpp
@@ -480,11 +480,28 @@ void sceneHandler11_swingLogic() {
}
void sceneHandler11_sub05() {
- warning("STUB: sceneHandler11_sub05()");
+ if (g_vars->scene11_var17 == 2)
+ g_vars->scene11_var18 = 1;
+ else if (g_vars->scene11_var17 == 1)
+ g_vars->scene11_var18 = 2;
+ else
+ g_vars->scene11_var18 = (g_vars->scene11_dudeOnSwing->_movement->_currDynamicPhaseIndex <= 45) + 1;
}
void sceneHandler11_sub06() {
- warning("STUB: sceneHandler11_sub06()");
+ if (g_fp->getObjectState(sO_Swingie) == g_fp->getObjectEnumState(sO_Swingie, sO_IsStandingInBoots)) {
+ g_vars->scene11_var19 = 0;
+ g_vars->scene11_var20 = 0;
+
+ g_vars->scene11_swingie->changeStatics2(ST_SWR_SIT);
+ g_vars->scene11_swingie->setOXY(144, 389);
+
+ g_fp->setObjectState(sO_Swingie, g_fp->getObjectEnumState(sO_Swingie, sO_IsSitting));
+
+ getCurrSceneSc2MotionController()->enableLinks(sO_CloseThing1, 0);
+ getCurrSceneSc2MotionController()->enableLinks(sO_CloseThing2, 0);
+ getCurrSceneSc2MotionController()->enableLinks(sO_CloseThing3, 1);
+ }
}
void sceneHandler11_sub07() {