aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes/scene09.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2014-02-12 21:22:15 +0200
committerEugene Sandulenko2014-02-13 00:50:41 +0200
commit2c5e338d3366ad33f09b9f9976907f814b5c7afd (patch)
tree728e72bda4b958f2b32aeb4dfff3b415b3cce6cd /engines/fullpipe/scenes/scene09.cpp
parent893667fc9e1f83d51351b3c84cf1b6dcd1f703b5 (diff)
downloadscummvm-rg350-2c5e338d3366ad33f09b9f9976907f814b5c7afd.tar.gz
scummvm-rg350-2c5e338d3366ad33f09b9f9976907f814b5c7afd.tar.bz2
scummvm-rg350-2c5e338d3366ad33f09b9f9976907f814b5c7afd.zip
FULLPIPE: Implement scene09_updateCursor()
Diffstat (limited to 'engines/fullpipe/scenes/scene09.cpp')
-rw-r--r--engines/fullpipe/scenes/scene09.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp
index 29305413d4..ce7fecc409 100644
--- a/engines/fullpipe/scenes/scene09.cpp
+++ b/engines/fullpipe/scenes/scene09.cpp
@@ -210,4 +210,28 @@ void scene09_initScene(Scene *sc) {
g_fp->setArcadeOverlay(PIC_CSR_ARCADE4);
}
+int sceneHandler09_updateScreenCallback() {
+ warning("STUB: int sceneHandler09_updateScreenCallback()");
+
+ return 0;
+}
+
+int scene09_updateCursor() {
+ g_fp->updateCursorCommon();
+
+ if (g_vars->scene09_var10 < 0) {
+ if (g_fp->_objectIdAtCursor == ANI_VISUNCHIK) {
+ if (g_fp->_cursorId == PIC_CSR_ITN)
+ g_fp->_updateScreenCallback = sceneHandler09_updateScreenCallback;
+ } else {
+ if (g_fp->_objectIdAtCursor == PIC_SC9_LADDER_R && g_fp->_cursorId == PIC_CSR_ITN)
+ g_fp->_cursorId = (g_vars->scene09_var02 < 350) ? PIC_CSR_GOD : PIC_CSR_GOU;
+ }
+ } else {
+ g_fp->_cursorId = PIC_CSR_ITN;
+ }
+
+ return g_fp->_cursorId;
+}
+
} // End of namespace Fullpipe