aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-06 19:47:38 +0200
committerEugene Sandulenko2014-01-06 22:36:16 +0200
commit63dd8460bc84a8a9037def6d1302cf005b09d7ee (patch)
treea2597e2d273507cb9e4621ffd5ba1cc275bd1a77
parent475ccb24b2c9c12e01a315af4ab5d6a055a53fb2 (diff)
downloadscummvm-rg350-63dd8460bc84a8a9037def6d1302cf005b09d7ee.tar.gz
scummvm-rg350-63dd8460bc84a8a9037def6d1302cf005b09d7ee.tar.bz2
scummvm-rg350-63dd8460bc84a8a9037def6d1302cf005b09d7ee.zip
FULLPIPE: Implement scene28_updateCursor()
-rw-r--r--engines/fullpipe/constants.h4
-rw-r--r--engines/fullpipe/scenes/scene28.cpp9
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index e42479d0ec..10204c5b6b 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -967,6 +967,10 @@ namespace Fullpipe {
#define ST_VNT26_RIGHT2 3348
#define ST_VNT26_UP2 1948
+// Scene 28
+#define ANI_LIFT 982
+#define ANI_LIFT_28 4238
+
// Scene 30
#define ANI_LEG 2322
#define MSG_SC30_UPDATEPATH 2358
diff --git a/engines/fullpipe/scenes/scene28.cpp b/engines/fullpipe/scenes/scene28.cpp
index bdb1699d70..10139a911e 100644
--- a/engines/fullpipe/scenes/scene28.cpp
+++ b/engines/fullpipe/scenes/scene28.cpp
@@ -54,4 +54,13 @@ void scene28_initScene() {
g_fp->initArcadeKeys("SC_28");
}
+int scene28_updateCursor() {
+ g_fp->updateCursorCommon();
+ if (g_fp->_objectIdAtCursor == ANI_LIFT || g_fp->_objectIdAtCursor == ANI_LIFT_28)
+ if (g_fp->_cursorId == PIC_CSR_DEFAULT)
+ g_fp->_cursorId = PIC_CSR_ITN;
+
+ return g_fp->_cursorId;
+}
+
} // End of namespace Fullpipe