aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-17 10:23:24 +0200
committerEugene Sandulenko2013-12-17 10:23:24 +0200
commit3fb03efbe33fff3b83e0facc67e96e9253987fe5 (patch)
tree921f15d1c366a65887cddaba56f48a59fb79cba2 /engines
parentce586cf836deb63b08db667d8faba72fb50e2fad (diff)
downloadscummvm-rg350-3fb03efbe33fff3b83e0facc67e96e9253987fe5.tar.gz
scummvm-rg350-3fb03efbe33fff3b83e0facc67e96e9253987fe5.tar.bz2
scummvm-rg350-3fb03efbe33fff3b83e0facc67e96e9253987fe5.zip
FULLPIPE: Implement sceneHandler06_buttonPush()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/constants.h2
-rw-r--r--engines/fullpipe/scenes/scene06.cpp8
2 files changed, 9 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 159b296ca4..6bd80a3d4b 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -258,6 +258,7 @@ namespace Fullpipe {
#define QU_PNK_CLICK 550
#define QU_SC3_ENTERLIFT 2779
#define QU_SC3_EXITLIFT 2808
+#define QU_SC6_FALLHANDLE 2995
#define QU_SC4_GOCLOCK 595
#define QU_SC4_MANFROMBOTTLE 2851
#define QU_SC4_MANTOBOTTLE 2850
@@ -335,6 +336,7 @@ namespace Fullpipe {
#define ST_EGTR_SLIM 336
#define ST_HDL_BROKEN 3342
#define ST_HDL_DOWN 625
+#define ST_HDL_PLUGGED 2397
#define ST_HDL_UP 624
#define ST_HND_EMPTY 603
#define ST_IN1MAN_SLEEP 5112
diff --git a/engines/fullpipe/scenes/scene06.cpp b/engines/fullpipe/scenes/scene06.cpp
index ecccd7844d..73f38e4cf6 100644
--- a/engines/fullpipe/scenes/scene06.cpp
+++ b/engines/fullpipe/scenes/scene06.cpp
@@ -107,7 +107,13 @@ void sceneHandler06_uPipeClick() {
}
void sceneHandler06_buttonPush() {
- warning("STUB: sceneHandler06_buttonPush()");
+ g_vars->scene06_invHandle = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_INV_HANDLE, -1);
+
+ if (g_vars->scene06_invHandle)
+ if (g_vars->scene06_invHandle->_flags & 4)
+ if (g_vars->scene06_invHandle->_statics)
+ if (g_vars->scene06_invHandle->_statics->_staticsId == ST_HDL_PLUGGED)
+ chainQueue(QU_SC6_FALLHANDLE, 1);
}
void sceneHandler06_showNextBall() {