diff options
author | Eugene Sandulenko | 2014-03-03 23:39:42 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-03-03 23:40:05 +0200 |
commit | f504635cbded10d9af2dda00369e6ebf19957d8e (patch) | |
tree | bcb917f819ac17f7701788b3dfbb4c85cd215d1f | |
parent | bc3eb3b22b5f8ce46e8a4c596b408c667fade2fa (diff) | |
download | scummvm-rg350-f504635cbded10d9af2dda00369e6ebf19957d8e.tar.gz scummvm-rg350-f504635cbded10d9af2dda00369e6ebf19957d8e.tar.bz2 scummvm-rg350-f504635cbded10d9af2dda00369e6ebf19957d8e.zip |
FULLPIPE: Implement scene19_setSugarState()
-rw-r--r-- | engines/fullpipe/constants.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene18and19.cpp | 10 |
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; |