diff options
author | Eugene Sandulenko | 2013-12-22 01:09:17 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-22 01:09:17 +0200 |
commit | 787868c1db40976441ddfc49211ea08f14af0fea (patch) | |
tree | e81fbe3e26c88f5dee64fd808527f334f81e477c /engines/fullpipe/scenes/scene10.cpp | |
parent | 9ef756e8d7062999052d71e512a996c80c70af4c (diff) | |
download | scummvm-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.cpp | 21 |
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()"); } |