From 39b83756b8ecb380c01add00c137ef4765605191 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 2 Jan 2014 13:49:35 +0200 Subject: FULLPIPE: Implement scene30_updateCursor() --- engines/fullpipe/constants.h | 1 + engines/fullpipe/scenes/scene30.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'engines') diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index 28eee3914e..09fe970d02 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -749,6 +749,7 @@ namespace Fullpipe { // Scene 30 #define ANI_LEG 2322 +#define PIC_SC30_LTRUBA 2354 #define QU_SC30_ENTERLIFT 2823 #define QU_SC30_EXITLIFT 2824 #define ST_LEG_DOWN 2325 diff --git a/engines/fullpipe/scenes/scene30.cpp b/engines/fullpipe/scenes/scene30.cpp index ace3ce0d58..51f6866460 100644 --- a/engines/fullpipe/scenes/scene30.cpp +++ b/engines/fullpipe/scenes/scene30.cpp @@ -81,4 +81,13 @@ void scene30_initScene(Scene *sc, int flag) { g_fp->lift_sub5(sc, QU_SC30_ENTERLIFT, QU_SC30_EXITLIFT); } +int scene30_updateCursor() { + g_fp->updateCursorCommon(); + + if (g_fp->_cursorId == PIC_CSR_ITN && g_fp->_objectIdAtCursor == PIC_SC30_LTRUBA) { + g_fp->_cursorId = PIC_CSR_GOL; + } + return g_fp->_cursorId; +} + } // End of namespace Fullpipe -- cgit v1.2.3