aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-01 16:50:04 +0200
committerEugene Sandulenko2013-12-01 16:50:04 +0200
commit521eeb9b42d0b37c5fe79843e7ecbda08f5b8065 (patch)
tree64d896be0b600b9e42b314921efdcc37424ea9df /engines/fullpipe/scenes
parent9bf28664b9e0f4c36c51ad3cf327db049b570ee1 (diff)
downloadscummvm-rg350-521eeb9b42d0b37c5fe79843e7ecbda08f5b8065.tar.gz
scummvm-rg350-521eeb9b42d0b37c5fe79843e7ecbda08f5b8065.tar.bz2
scummvm-rg350-521eeb9b42d0b37c5fe79843e7ecbda08f5b8065.zip
FULLPIPE: Implement sceneHandler04_winArcade()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene04.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index f2fbfd3ef4..137133ba28 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -33,6 +33,7 @@
#include "fullpipe/interaction.h"
#include "fullpipe/gameloader.h"
#include "fullpipe/behavior.h"
+#include "fullpipe/motion.h"
namespace Fullpipe {
@@ -446,7 +447,30 @@ void sceneHandler04_updateBottle() {
}
void sceneHandler04_winArcade() {
- warning("sceneHandler04_winArcade()");
+ if (g_fullpipe->getObjectState(sO_LowerPipe) == g_fullpipe->getObjectEnumState(sO_LowerPipe, sO_IsClosed)
+ && g_vars->scene04_soundPlaying) {
+ g_vars->scene04_clock->changeStatics2(ST_CLK_CLOSED);
+ g_vars->scene04_hand->changeStatics2(ST_HND_EMPTY);
+
+ chainQueue(QU_HND_TAKEBOTTLE, 1);
+
+ if (g_vars->scene04_walkingKozyawka) {
+ g_vars->scene04_kozyawkiObjList.push_back(g_vars->scene04_walkingKozyawka);
+
+ g_vars->scene04_walkingKozyawka->changeStatics2(ST_KZW_EMPTY);
+ g_vars->scene04_walkingKozyawka->hide();
+ g_vars->scene04_walkingKozyawka = 0;
+ }
+
+ g_vars->scene04_var19 = 0;
+ g_vars->scene04_soundPlaying = 0;
+
+ getSc2MctlCompoundBySceneId(g_fullpipe->_currentScene->_sceneId)->setEnabled();
+
+ getGameLoaderInteractionController()->enableFlag24();
+
+ g_fullpipe->stopSoundStream2();
+ }
}
int sceneHandler04(ExCommand *ex) {