aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-18 11:28:57 +0200
committerEugene Sandulenko2014-01-18 11:28:57 +0200
commit9a4d233fc5457687474c0b08c6e828beb8cafeb4 (patch)
treeab475de7abe6b47317eeeead7244f5ed10fc9749
parent9dd3c9d2b77e13310d15637f8941a2f7e132166e (diff)
downloadscummvm-rg350-9a4d233fc5457687474c0b08c6e828beb8cafeb4.tar.gz
scummvm-rg350-9a4d233fc5457687474c0b08c6e828beb8cafeb4.tar.bz2
scummvm-rg350-9a4d233fc5457687474c0b08c6e828beb8cafeb4.zip
FULLPIPE: Implement scene37_updateCursor()
-rw-r--r--engines/fullpipe/constants.h1
-rw-r--r--engines/fullpipe/scenes/scene37.cpp11
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 7d99393067..b1d0809ae1 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -1287,6 +1287,7 @@ namespace Fullpipe {
// Scene 37
#define ANI_GUARD_37 2588
#define ANI_RING 2604
+#define PIC_SC37_MASK 2608
#define ST_RNG_CLOSED2 4865
#define ST_RNG_OPEN 2606
diff --git a/engines/fullpipe/scenes/scene37.cpp b/engines/fullpipe/scenes/scene37.cpp
index ed9ce0241f..0383212b84 100644
--- a/engines/fullpipe/scenes/scene37.cpp
+++ b/engines/fullpipe/scenes/scene37.cpp
@@ -149,4 +149,15 @@ void scene37_initScene(Scene *sc) {
g_fp->initArcadeKeys("SC_37");
}
+int scene37_updateCursor() {
+ g_fp->updateCursorCommon();
+
+ if (g_fp->_cursorId == PIC_CSR_ITN && g_fp->_objectIdAtCursor == PIC_SC37_MASK) {
+ if (g_vars->scene37_var07)
+ g_fp->_cursorId = PIC_CSR_GOL;
+ }
+
+ return g_fp->_cursorId;
+}
+
} // End of namespace Fullpipe