diff options
author | Eugene Sandulenko | 2013-12-15 14:42:32 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-15 14:59:31 +0200 |
commit | 29a8bb5dbcd1754c3821ed81856249ec9fff2082 (patch) | |
tree | 6957677916695ee2e541795386285b7c4784c14e | |
parent | 5751f4c1103305465dc3ffaf38a1094724a23be7 (diff) | |
download | scummvm-rg350-29a8bb5dbcd1754c3821ed81856249ec9fff2082.tar.gz scummvm-rg350-29a8bb5dbcd1754c3821ed81856249ec9fff2082.tar.bz2 scummvm-rg350-29a8bb5dbcd1754c3821ed81856249ec9fff2082.zip |
FULLPIPE: Implement sceneHandler05_makeManFlight()
-rw-r--r-- | engines/fullpipe/constants.h | 3 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene05.cpp | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index db9b6f685a..d6a63da3b6 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -234,6 +234,8 @@ namespace Fullpipe { #define QU_SC4_GOCLOCK 595 #define QU_SC4_MANFROMBOTTLE 2851 #define QU_SC4_MANTOBOTTLE 2850 +#define QU_SC5_MANBUMP 1167 +#define QU_SC5_MANFLY 1168 #define SC_1 301 #define SC_10 653 #define SC_11 654 @@ -294,6 +296,7 @@ namespace Fullpipe { #define SND_CMN_070 5199 #define SND_INTR_019 5220 #define ST_BLK_CLOSED 912 +#define ST_BLK_OPEN 913 #define ST_CLK_CLOSED 590 #define ST_DYAS_LIES 318 #define ST_EGTR_MID1 2863 diff --git a/engines/fullpipe/scenes/scene05.cpp b/engines/fullpipe/scenes/scene05.cpp index 5900e73353..0e7731163c 100644 --- a/engines/fullpipe/scenes/scene05.cpp +++ b/engines/fullpipe/scenes/scene05.cpp @@ -72,7 +72,18 @@ void scene05_initScene(Scene *sc) { } void sceneHandler05_makeManFlight() { - warning("STUB: sceneHandler05_makeManFlight()"); + int qid; + + if (!g_vars->scene05_bigHatch->_statics || g_vars->scene05_bigHatch->_statics->_staticsId != ST_BLK_OPEN) + qid = QU_SC5_MANBUMP; + else + qid = QU_SC5_MANFLY; + + MessageQueue *mq = new MessageQueue(g_fullpipe->_currentScene->getMessageQueueById(qid), 0, 0); + + mq->setFlags(mq->getFlags() | 1); + + mq->chain(0); } void sceneHandler05_makeOtmFeedback() { |