diff options
author | Eugene Sandulenko | 2014-01-05 22:14:03 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-05 22:42:14 +0200 |
commit | 541ac8309683d8bebb32ef3f93c82e94a594c89c (patch) | |
tree | 8781cb104eea940138a0b8bd2e32fd821a3ba391 /engines/fullpipe | |
parent | c5126d6efec27deaa736d80f636a5b021b882367 (diff) | |
download | scummvm-rg350-541ac8309683d8bebb32ef3f93c82e94a594c89c.tar.gz scummvm-rg350-541ac8309683d8bebb32ef3f93c82e94a594c89c.tar.bz2 scummvm-rg350-541ac8309683d8bebb32ef3f93c82e94a594c89c.zip |
FULLPIPE: Implement scene26_updateCursor()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/constants.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene26.cpp | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index 186f2f54ba..811afd401a 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -932,6 +932,8 @@ namespace Fullpipe { #define ANI_INV_VENT 1968 #define ANI_LUK26 1867 #define ANI_SOCK_26 4553 +#define ANI_VENT 1927 +#define PIC_SC26_LTRUBA 1864 #define PIC_SC26_SOCK 5312 #define SND_26_018 5340 diff --git a/engines/fullpipe/scenes/scene26.cpp b/engines/fullpipe/scenes/scene26.cpp index cc6eeb8e7a..bf81f2f540 100644 --- a/engines/fullpipe/scenes/scene26.cpp +++ b/engines/fullpipe/scenes/scene26.cpp @@ -67,4 +67,17 @@ void scene26_initScene(Scene *sc) { g_fp->playSound(SND_26_018, 1); } +int scene26_updateCursor() { + g_fp->updateCursorCommon(); + + if (g_fp->_objectIdAtCursor != ANI_VENT || g_fp->_cursorId != PIC_CSR_DEFAULT) { + if (g_fp->_cursorId == PIC_CSR_ITN && g_fp->_objectIdAtCursor == PIC_SC26_LTRUBA) + g_fp->_cursorId = PIC_CSR_GOL; + } else { + g_fp->_cursorId = PIC_CSR_ITN; + } + + return g_fp->_cursorId; +} + } // End of namespace Fullpipe |