From e92dc6911785660a8e0d9e1db407aa52872f9609 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 1 Jan 2014 23:58:02 +0200 Subject: FULLPIPE: Add more code to scene17 --- engines/fullpipe/scenes/scene17.cpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'engines/fullpipe/scenes') 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() { -- cgit v1.2.3