diff options
author | Eugene Sandulenko | 2014-01-01 13:35:09 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-01 13:35:09 +0200 |
commit | 86081fbc76cbe4f1d0a1d5c75a5aa97d500e9546 (patch) | |
tree | c366705607d6fb3d0c7f98bf89e344e3aff8cd14 /engines/fullpipe/scenes | |
parent | e1ed5cbbc6c03ef534101a08884f2372e9148069 (diff) | |
download | scummvm-rg350-86081fbc76cbe4f1d0a1d5c75a5aa97d500e9546.tar.gz scummvm-rg350-86081fbc76cbe4f1d0a1d5c75a5aa97d500e9546.tar.bz2 scummvm-rg350-86081fbc76cbe4f1d0a1d5c75a5aa97d500e9546.zip |
FULLPIPE: Implement scene16_updateCursor()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene16.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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 |