aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes/scene10.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-22 01:09:17 +0200
committerEugene Sandulenko2013-12-22 01:09:17 +0200
commit787868c1db40976441ddfc49211ea08f14af0fea (patch)
treee81fbe3e26c88f5dee64fd808527f334f81e477c /engines/fullpipe/scenes/scene10.cpp
parent9ef756e8d7062999052d71e512a996c80c70af4c (diff)
downloadscummvm-rg350-787868c1db40976441ddfc49211ea08f14af0fea.tar.gz
scummvm-rg350-787868c1db40976441ddfc49211ea08f14af0fea.tar.bz2
scummvm-rg350-787868c1db40976441ddfc49211ea08f14af0fea.zip
FULLPIPE: Implement scene10_updateCursor() and enable scene10
Diffstat (limited to 'engines/fullpipe/scenes/scene10.cpp')
-rw-r--r--engines/fullpipe/scenes/scene10.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene10.cpp b/engines/fullpipe/scenes/scene10.cpp
index 7cb277928d..44446439f3 100644
--- a/engines/fullpipe/scenes/scene10.cpp
+++ b/engines/fullpipe/scenes/scene10.cpp
@@ -52,6 +52,27 @@ void scene10_initScene(Scene *sc) {
}
}
+bool sceneHandler10_inflaterIsBlind() {
+ warning("STUB: sceneHandler10_inflaterIsBlind()");
+
+ return false;
+}
+
+int scene10_updateCursor() {
+ g_fp->updateCursorCommon();
+
+ if (g_fp->_objectIdAtCursor == ANI_PACHKA || g_fp->_objectIdAtCursor == ANI_GUM) {
+ if (g_fp->_cursorId == PIC_CSR_ITN) {
+ if (g_vars->scene10_hasGum)
+ g_fp->_cursorId = (sceneHandler10_inflaterIsBlind() != 0) ? PIC_CSR_ITN_RED : PIC_CSR_ITN_GREEN;
+ else
+ g_fp->_cursorId = PIC_CSR_DEFAULT;
+ }
+ }
+
+ return g_fp->_cursorId;
+}
+
void sceneHandler10_clickGum() {
warning("STUB: sceneHandler10_clickGum()");
}