diff options
author | Eugene Sandulenko | 2014-01-09 22:24:37 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-10 00:42:20 +0200 |
commit | c02beb4aa56a6a4d22c848265e55d375b60cc59f (patch) | |
tree | e9e735604f2527fccd6b30ac0bed5108935dd800 /engines | |
parent | cb1150c32d92d6a61b8e3eff3a154588a8ad53d9 (diff) | |
download | scummvm-rg350-c02beb4aa56a6a4d22c848265e55d375b60cc59f.tar.gz scummvm-rg350-c02beb4aa56a6a4d22c848265e55d375b60cc59f.tar.bz2 scummvm-rg350-c02beb4aa56a6a4d22c848265e55d375b60cc59f.zip |
FULLPIPE: Implement scene33_updateCursor() and setupMusic()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/constants.h | 1 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene33.cpp | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index fe54a1874a..26cc43abe9 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -1110,6 +1110,7 @@ namespace Fullpipe { #define ANI_MUG_33 2623 #define ANI_VENT_33 2637 #define MSG_SC33_TRYKUBIK 4980 +#define PIC_SC33_ZONES 5298 #define QU_KBK33_START 4983 // Scene 36 diff --git a/engines/fullpipe/scenes/scene33.cpp b/engines/fullpipe/scenes/scene33.cpp index 1adf39f989..084ee09d6c 100644 --- a/engines/fullpipe/scenes/scene33.cpp +++ b/engines/fullpipe/scenes/scene33.cpp @@ -65,4 +65,18 @@ void scene33_initScene(Scene *sc) { g_fp->initArcadeKeys("SC_33"); } +void scene33_setupMusic() { + if (g_fp->lift_checkButton(sO_Level6)) + g_fp->playTrack(g_fp->getGameLoaderGameVar()->getSubVarByName("SC_33"), "MUSIC2", 1); +} + +int scene33_updateCursor() { + g_fp->updateCursorCommon(); + + if (g_fp->_objectIdAtCursor == PIC_SC33_ZONES && g_fp->_cursorId == PIC_CSR_DEFAULT) + g_fp->_cursorId = PIC_CSR_ITN; + + return g_fp->_cursorId; +} + } // End of namespace Fullpipe |