aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/constants.h2
-rw-r--r--engines/fullpipe/scenes/scene18and19.cpp10
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index b825a1dfdf..83fafeed6e 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -887,11 +887,13 @@ namespace Fullpipe {
#define SND_18_010 4994
// Scene 19
+#define ANI_CORDIE 1529
#define ANI_WHIRLGIG_19 1302
#define MV_WHR19_SPIN 1317
#define PIC_SC19_RTRUBA3 1515
#define SND_19_015 3928
#define SND_19_016 4995
+#define ST_CDI_EMPTY2 1543
#define ST_KSL_NORM 1461
// Scene 20
diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp
index 7ac3e69599..5e69ec70f3 100644
--- a/engines/fullpipe/scenes/scene18and19.cpp
+++ b/engines/fullpipe/scenes/scene18and19.cpp
@@ -70,6 +70,16 @@ void scene18_setupEntrance() {
var->setSubVarAsInt("Entrance", TrubaLeft);
}
+void scene19_setSugarState(Scene *sc) {
+ if (g_fp->getObjectState(sO_Sugar) != g_fp->getObjectEnumState(sO_Sugar, sO_Present)) {
+ Scene *oldsc = g_fp->_currentScene;
+
+ g_fp->_currentScene = sc;
+ sc->getStaticANIObject1ById(ANI_CORDIE, -1)->changeStatics2(ST_CDI_EMPTY2);
+ g_fp->_currentScene = oldsc;
+ }
+}
+
void scene19_setMovements(Scene *sc, int entranceId) {
if (entranceId == TrubaRight) {
g_vars->scene18_var15 = 1;