aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-01 23:58:02 +0200
committerEugene Sandulenko2014-01-02 00:48:34 +0200
commite92dc6911785660a8e0d9e1db407aa52872f9609 (patch)
treedd10c35b97b02c63bf5f337ad58a5f264b3653a1 /engines/fullpipe/scenes
parent95c17e293ea6ff1f076044979636d680ebf41419 (diff)
downloadscummvm-rg350-e92dc6911785660a8e0d9e1db407aa52872f9609.tar.gz
scummvm-rg350-e92dc6911785660a8e0d9e1db407aa52872f9609.tar.bz2
scummvm-rg350-e92dc6911785660a8e0d9e1db407aa52872f9609.zip
FULLPIPE: Add more code to scene17
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene17.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/engines/fullpipe/scenes/scene17.cpp b/engines/fullpipe/scenes/scene17.cpp
index e08299bbee..d7cd25bd6b 100644
--- a/engines/fullpipe/scenes/scene17.cpp
+++ b/engines/fullpipe/scenes/scene17.cpp
@@ -49,7 +49,16 @@ void scene17_initScene(Scene *sc) {
}
void sceneHandler17_drop() {
- warning("STUB: sceneHandler17_drop()");
+ StaticANIObject *mug = g_fp->_currentScene->getStaticANIObject1ById(ANI_MUG_17, -1);
+ StaticANIObject *jet = g_fp->_currentScene->getStaticANIObject1ById(ANI_JET_17, -1);
+
+ if (mug && mug->_flags & 4) {
+ mug->changeStatics2(ST_MUG17_EMPTY);
+ chainQueue(QU_SC17_FILLMUG_DROP, 0);
+ } else if (jet) {
+ jet->queueMessageQueue(0);
+ chainQueue(QU_JET17_DROP, 0);
+ }
}
void sceneHandler17_fillBottle() {
@@ -61,15 +70,20 @@ void sceneHandler17_testTruba() {
}
void sceneHandler17_showBottle() {
- warning("STUB: sceneHandler17_showBottle()");
+ chainQueue(QU_SC17_SHOWBOTTLE, 0);
}
void sceneHandler17_hideSugar() {
- warning("STUB: sceneHandler17_hideSugar()");
+ StaticANIObject *sugar = g_fp->_currentScene->getStaticANIObject1ById(ANI_INV_SUGAR, -1);
+
+ if (sugar)
+ sugar->hide();
}
void sceneHandler17_showSugar() {
- warning("STUB: sceneHandler17_showSugar()");
+ chainQueue(QU_SC17_SHOWSUGAR, 0);
+
+ g_vars->scene17_var06 = 1;
}
void sceneHandler17_moonshineFill() {