diff options
author | Eugene Sandulenko | 2014-02-12 12:41:41 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-02-13 00:50:40 +0200 |
commit | d48d4b325c58ea8ee81fa0edc20d86913a7cf454 (patch) | |
tree | 2534d0fc351eb422495a7b836c018bed7eb002d0 /engines | |
parent | 417426a1652fe8eaa47193f590bc014cc99aabaa (diff) | |
download | scummvm-rg350-d48d4b325c58ea8ee81fa0edc20d86913a7cf454.tar.gz scummvm-rg350-d48d4b325c58ea8ee81fa0edc20d86913a7cf454.tar.bz2 scummvm-rg350-d48d4b325c58ea8ee81fa0edc20d86913a7cf454.zip |
FULLPIPE: Implement scene09_setupGrit()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/scenes/scene09.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp index 9bd725036b..21b46e5d5d 100644 --- a/engines/fullpipe/scenes/scene09.cpp +++ b/engines/fullpipe/scenes/scene09.cpp @@ -36,6 +36,20 @@ namespace Fullpipe { +void scene09_setupGrit(Scene *sc) { + if (g_vars->scene09_grit->_statics->_staticsId == ST_GRT9_GRIT) { + if (!getGameLoaderInventory()->getCountItemsWithId(ANI_INV_COIN)) { + if (getObjectState(sO_CoinSlot_1) == getObjectEnumState(sO_CoinSlot_1, sO_Empty) + && (g_vars->swallowedEgg1->_value.intValue == ANI_INV_EGGBOOT || g_vars->swallowedEgg2->_value.intValue == ANI_INV_EGGBOOT || g_vars->swallowedEgg3->_value.intValue == ANI_INV_EGGBOOT)) { + Scene *oldsc = g_currentScene; + g_fp->_currentScene = sc; + g_vars->scene09_grit->changeStatics2(ST_GRT9_NORM); + g_fp->_currentScene = oldsc; + } + } + } +} + void scene09_initScene(Scene *sc) { g_vars->scene09_flyingBall = 0; g_vars->scene09_var05 = 0; @@ -107,7 +121,7 @@ void scene09_initScene(Scene *sc) { ani->show1(x + hanger->_ox, haner->_oy, MV_VSN_CYCLE2, 0); sc->addStaticANIObject(hanger, 1); - g_vars->scene09_hangers[i].ani = v2; + g_vars->scene09_hangers[i].ani = ani; g_vars->scene09_hangers[i].phase = 0; g_vars->scene09_hangers[i].field_4 = 0; g_vars->scene09_hangers[i].field_8 = 0; |