From 9a4d233fc5457687474c0b08c6e828beb8cafeb4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 18 Jan 2014 11:28:57 +0200 Subject: FULLPIPE: Implement scene37_updateCursor() --- engines/fullpipe/constants.h | 1 + engines/fullpipe/scenes/scene37.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index 7d99393067..b1d0809ae1 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -1287,6 +1287,7 @@ namespace Fullpipe { // Scene 37 #define ANI_GUARD_37 2588 #define ANI_RING 2604 +#define PIC_SC37_MASK 2608 #define ST_RNG_CLOSED2 4865 #define ST_RNG_OPEN 2606 diff --git a/engines/fullpipe/scenes/scene37.cpp b/engines/fullpipe/scenes/scene37.cpp index ed9ce0241f..0383212b84 100644 --- a/engines/fullpipe/scenes/scene37.cpp +++ b/engines/fullpipe/scenes/scene37.cpp @@ -149,4 +149,15 @@ void scene37_initScene(Scene *sc) { g_fp->initArcadeKeys("SC_37"); } +int scene37_updateCursor() { + g_fp->updateCursorCommon(); + + if (g_fp->_cursorId == PIC_CSR_ITN && g_fp->_objectIdAtCursor == PIC_SC37_MASK) { + if (g_vars->scene37_var07) + g_fp->_cursorId = PIC_CSR_GOL; + } + + return g_fp->_cursorId; +} + } // End of namespace Fullpipe -- cgit v1.2.3