aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-01 13:35:09 +0200
committerEugene Sandulenko2014-01-01 13:35:09 +0200
commit86081fbc76cbe4f1d0a1d5c75a5aa97d500e9546 (patch)
treec366705607d6fb3d0c7f98bf89e344e3aff8cd14
parente1ed5cbbc6c03ef534101a08884f2372e9148069 (diff)
downloadscummvm-rg350-86081fbc76cbe4f1d0a1d5c75a5aa97d500e9546.tar.gz
scummvm-rg350-86081fbc76cbe4f1d0a1d5c75a5aa97d500e9546.tar.bz2
scummvm-rg350-86081fbc76cbe4f1d0a1d5c75a5aa97d500e9546.zip
FULLPIPE: Implement scene16_updateCursor()
-rw-r--r--engines/fullpipe/constants.h2
-rw-r--r--engines/fullpipe/scenes/scene16.cpp14
2 files changed, 16 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 1b7d8ea60d..cc82ee22d0 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -649,8 +649,10 @@ namespace Fullpipe {
#define ANI_MUG 1296
#define ANI_WIRE16 1344
#define MV_GRL_LAUGH_POPA 3278
+#define PIC_SC16_TUMBA 1368
#define SND_16_034 3854
#define ST_MUG_EMPTY 1298
+#define ST_MUG_FULL 1360
// Scene 24
#define ANI_DROP_24 3505
diff --git a/engines/fullpipe/scenes/scene16.cpp b/engines/fullpipe/scenes/scene16.cpp
index 9b952ec29c..b2053851d3 100644
--- a/engines/fullpipe/scenes/scene16.cpp
+++ b/engines/fullpipe/scenes/scene16.cpp
@@ -110,4 +110,18 @@ void scene16_initScene(Scene *sc) {
}
}
+int scene16_updateCursor() {
+ g_fp->updateCursorCommon();
+
+ if (g_fp->_objectIdAtCursor == PIC_SC16_TUMBA) {
+ if (g_fp->_cursorId == PIC_CSR_DEFAULT)
+ g_fp->_cursorId = PIC_CSR_ITN;
+ } else {
+ if (g_fp->_objectIdAtCursor == ANI_MUG && g_fp->_cursorId == PIC_CSR_ITN && g_vars->scene16_mug->_statics->_staticsId == ST_MUG_FULL)
+ g_fp->_cursorId = PIC_CSR_ITN_GREEN;
+ }
+
+ return g_fp->_cursorId;
+}
+
} // End of namespace Fullpipe