aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-08 16:58:30 +0200
committerEugene Sandulenko2013-12-08 16:58:50 +0200
commit31a6095573253d01dfa112f2d2398f47e1348b74 (patch)
treed597247fd858544665e27be7a44155d4e007e669 /engines
parent99731dfc0e661c30ca5702328babb7b69b981ebd (diff)
downloadscummvm-rg350-31a6095573253d01dfa112f2d2398f47e1348b74.tar.gz
scummvm-rg350-31a6095573253d01dfa112f2d2398f47e1348b74.tar.bz2
scummvm-rg350-31a6095573253d01dfa112f2d2398f47e1348b74.zip
FULLPIPE: Implement sceneHandler04_sub9()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scenes/scene04.cpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index aacc0f1939..89e6fc31b4 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -502,10 +502,6 @@ void sceneHandler04_sub8(ExCommand *ex) {
warning("sceneHandler04_sub8()");
}
-void sceneHandler04_sub9(StaticANIObject *ani) {
- warning("sceneHandler04_sub9()");
-}
-
void sceneHandler04_sub12() {
StaticANIObject *ball = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_BIGBALL, -1);
@@ -533,6 +529,25 @@ void sceneHandler04_handTake() {
}
}
+void sceneHandler04_sub9(StaticANIObject *ani) {
+ g_vars->scene04_bottleObjList.push_back(ani);
+ g_vars->scene04_kozyawkiAni.push_back(ani);
+
+ g_vars->scene04_var06 += 2;
+ g_vars->scene04_walkingKozyawka = 0;
+ g_vars->scene04_var24 = 0;
+
+ if (g_vars->scene04_kozyawkiAni.size() > 1 )
+ g_vars->scene04_var19 = 0;
+
+ if (g_vars->scene04_kozyawkiAni.size() <= 2 || g_vars->scene04_hand->_movement) {
+ sceneHandler04_walkKozyawka();
+ } else {
+ sceneHandler04_handTake();
+ sceneHandler04_stopSound();
+ }
+}
+
void sceneHandler04_sub17() {
StaticANIObject *ball = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_BIGBALL, -1);