diff options
author | Eugene Sandulenko | 2014-02-28 23:12:31 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-02-28 23:12:31 +0200 |
commit | a140837f79362d50ef772b301a2a9413c31f9d6b (patch) | |
tree | cfe37b0d8a4de01f754892bbe81220c4f3762fba /engines/fullpipe/scenes | |
parent | e6236293f99c3561c24898969efafaff0974130e (diff) | |
download | scummvm-rg350-a140837f79362d50ef772b301a2a9413c31f9d6b.tar.gz scummvm-rg350-a140837f79362d50ef772b301a2a9413c31f9d6b.tar.bz2 scummvm-rg350-a140837f79362d50ef772b301a2a9413c31f9d6b.zip |
FULLPIPE: Implement scene18_updateCursor()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene18and19.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp index 033d7052f7..4994a02b87 100644 --- a/engines/fullpipe/scenes/scene18and19.cpp +++ b/engines/fullpipe/scenes/scene18and19.cpp @@ -104,4 +104,24 @@ void scene19_initScene2() { g_vars->scene19_var04 = 300; } +int scene18_updateCursor() { + if (g_vars->scene18_var15) { + g_fp->_cursorId = PIC_CSR_DEFAULT; + } else { + g_fp->updateCursorCommon(); + + if (g_fp->_cursorId == PIC_CSR_ITN) { + if (g_fp->_objectIdAtCursor == PIC_SC18_LADDER1) { + g_fp->_cursorId = (g_vars->scene18_var11 <= 250) ? PIC_CSR_GOD : PIC_CSR_GOU; + } else if (g_fp->_objectIdAtCursor == PIC_SC18_LADDER2 || g_fp->_objectIdAtCursor == PIC_SC18_LADDER3) { + g_fp->_cursorId = PIC_CSR_GOU; + } + } else if (g_fp->_cursorId == PIC_CSR_DEFAULT && g_fp->_objectIdAtCursor == PIC_SC18_DOMIN && g_vars->scene18_domino && (g_vars->scene18_domino->_flags & 4)) { + g_fp->_cursorId = PIC_CSR_ITN; + } + } + + return g_fp->_cursorId; +} + } // End of namespace Fullpipe |