diff options
author | Eugene Sandulenko | 2013-12-22 12:09:15 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-22 12:09:15 +0200 |
commit | 535d7823b0a94352ec715910709807265c49b860 (patch) | |
tree | 7187d3ac85fa561e40611a412492c7ee61b5418f /engines/fullpipe/scenes/scene08.cpp | |
parent | 67c4237a896d2ae4efc5187de2273bb8674bd0aa (diff) | |
download | scummvm-rg350-535d7823b0a94352ec715910709807265c49b860.tar.gz scummvm-rg350-535d7823b0a94352ec715910709807265c49b860.tar.bz2 scummvm-rg350-535d7823b0a94352ec715910709807265c49b860.zip |
FULLPIPE: Implement sceneHandler08_checkEndArcade()
Diffstat (limited to 'engines/fullpipe/scenes/scene08.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene08.cpp | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/engines/fullpipe/scenes/scene08.cpp b/engines/fullpipe/scenes/scene08.cpp index 1452744b7a..c48fa72930 100644 --- a/engines/fullpipe/scenes/scene08.cpp +++ b/engines/fullpipe/scenes/scene08.cpp @@ -182,8 +182,34 @@ void sceneHandler08_calcFlight() { warning("STUB: sceneHandler08_calcFlight()"); } +void sceneHandler08_finishArcade() { + g_vars->scene08_var06 = 0; + + getGameLoaderInteractionController()->enableFlag24(); + getCurrSceneSc2MotionController()->setEnabled(); +} + void sceneHandler08_checkEndArcade() { - warning("STUB: sceneHandler08_checkEndArcade()"); + if (g_vars->scene08_var02) { + int x = g_fp->_aniMan->_ox; + int y = g_vars->scene08_var08 + g_fp->_aniMan->_oy; + + if (!((g_vars->scene08_var08 + g_fp->_aniMan->_oy) % 3)) + g_vars->scene08_var08--; + + g_fp->_aniMan->setOXY(x, y); + + if (y < 80) { + sceneHandler08_finishArcade(); + + ExCommand *ex = new ExCommand(SC_8, 17, 0, 0, 0, 0, 1, 0, 0, 0); + ex->_messageNum = 61; + ex->_excFlags |= 2; + ex->_keyCode = TrubaUp; + + ex->postMessage(); + } + } } void sceneHandler08_badLuck() { @@ -212,13 +238,6 @@ void sceneHandler08_calcOffset() { warning("STUB: sceneHandler08_calcOffset()"); } -void sceneHandler08_finishArcade() { - g_vars->scene08_var06 = 0; - - getGameLoaderInteractionController()->enableFlag24(); - getCurrSceneSc2MotionController()->setEnabled(); -} - void sceneHandler08_jumpOff() { warning("STUB: sceneHandler08_jumpOff()"); } |