aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-30 23:34:18 +0200
committerEugene Sandulenko2013-12-30 23:34:18 +0200
commit574707f9dd65870e07daff42b015da8aa38f6b39 (patch)
treefe0cbe91ac257ec3ff160011d945790340c1e40d /engines
parentbcb48c9d17a6c8f5f16d1ccf367bb13bcf93f1d4 (diff)
downloadscummvm-rg350-574707f9dd65870e07daff42b015da8aa38f6b39.tar.gz
scummvm-rg350-574707f9dd65870e07daff42b015da8aa38f6b39.tar.bz2
scummvm-rg350-574707f9dd65870e07daff42b015da8aa38f6b39.zip
FULLPIPE: Implement scene14_setupMusic() and scene14_updateCursor()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scenes/scene14.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp
index afc303b140..b0ad307917 100644
--- a/engines/fullpipe/scenes/scene14.cpp
+++ b/engines/fullpipe/scenes/scene14.cpp
@@ -81,4 +81,29 @@ void scene14_initScene(Scene *sc) {
g_fp->setArcadeOverlay(PIC_CSR_ARCADE6);
}
+void scene14_setupMusic() {
+ if (!g_vars->scene14_var13)
+ g_fp->playTrack(g_fp->getGameLoaderGameVar()->getSubVarByName("SC_14"), "MUSIC2", 0);
+}
+
+int scene14_updateCursor() {
+ g_fp->updateCursorCommon();
+
+ if (g_vars->scene14_var03) {
+ if (g_vars->scene14_var04) {
+ g_fp->_cursorId = PIC_CSR_ARCADE2_D;
+ } else {
+ if (g_fp->_aniMan != g_fp->_objectAtCursor || g_fp->_aniMan->_movement || g_fp->_cursorId != PIC_CSR_DEFAULT) {
+ if (g_fp->_cursorId != PIC_CSR_DEFAULT_INV && g_fp->_cursorId != PIC_CSR_ITN_INV) {
+ g_fp->_cursorId = PIC_CSR_DEFAULT;
+ }
+ } else {
+ g_fp->_cursorId = PIC_CSR_ITN;
+ }
+ }
+ }
+
+ return g_fp->_cursorId;
+}
+
} // End of namespace Fullpipe