diff options
author | Eugene Sandulenko | 2014-02-03 21:04:32 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-02-03 21:04:32 +0200 |
commit | b128b8cacb1cd57d4245d0bbb31db5a66be78aff (patch) | |
tree | dcbcbfeb729beade72a7a9f586efc045dd71698a /engines/fullpipe/scenes/scene27.cpp | |
parent | 8225ffd065e9549493ff2d7b392a46cc83cda74d (diff) | |
download | scummvm-rg350-b128b8cacb1cd57d4245d0bbb31db5a66be78aff.tar.gz scummvm-rg350-b128b8cacb1cd57d4245d0bbb31db5a66be78aff.tar.bz2 scummvm-rg350-b128b8cacb1cd57d4245d0bbb31db5a66be78aff.zip |
FULLPIPE: Implement sceneHandler27_startAiming()
Diffstat (limited to 'engines/fullpipe/scenes/scene27.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene27.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp index 870cff9ece..63b4964fc5 100644 --- a/engines/fullpipe/scenes/scene27.cpp +++ b/engines/fullpipe/scenes/scene27.cpp @@ -189,7 +189,24 @@ void sceneHandler27_startBat(StaticANIObject *bat) { } void sceneHandler27_startAiming() { - warning("STUB: sceneHandler27_startAiming()"); + g_vars->scene27_var08 = 0; + g_vars->scene27_var09 = 0; + + g_fp->_aniMan->_callback2 = 0; + + g_vars->scene27_launchPhase = g_fp->_aniMan->_movement->_currDynamicPhaseIndex - 6; + + int phase = 21 - g_vars->scene27_launchPhase; + + if (phase < 14) + phase = 14; + + if (phase > 20) + phase = 20; + + g_fp->playSound(SND_27_044, 0); + + g_fp->_aniMan->_movement->setDynamicPhaseIndex(phase); } void sceneHandler27_sub04(ExCommand *cmd) { |