From bb290873320bcd87e1e0c915be03518a9ab0d355 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 4 Mar 2014 23:02:01 +0200 Subject: FULLPIPE: Implement scene19_updateCursor() --- engines/fullpipe/constants.h | 1 + engines/fullpipe/scenes/scene18and19.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index 83fafeed6e..6f98e1a8d3 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -891,6 +891,7 @@ namespace Fullpipe { #define ANI_WHIRLGIG_19 1302 #define MV_WHR19_SPIN 1317 #define PIC_SC19_RTRUBA3 1515 +#define PIC_SC19_RTRUBA31 5320 #define SND_19_015 3928 #define SND_19_016 4995 #define ST_CDI_EMPTY2 1543 diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp index 5e69ec70f3..759af9127b 100644 --- a/engines/fullpipe/scenes/scene18and19.cpp +++ b/engines/fullpipe/scenes/scene18and19.cpp @@ -325,4 +325,13 @@ int scene18_updateCursor() { return g_fp->_cursorId; } +int scene19_updateCursor() { + g_fp->updateCursorCommon(); + + if (g_fp->_objectIdAtCursor == PIC_SC19_RTRUBA31) + g_fp->_cursorId = g_vars->scene19_var05 != 0 ? PIC_CSR_GOR : PIC_CSR_DEFAULT; + + return g_fp->_cursorId; +} + } // End of namespace Fullpipe -- cgit v1.2.3