diff options
author | Eugene Sandulenko | 2014-02-03 15:37:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-02-03 15:46:39 +0200 |
commit | f5ffef7b66230aa4d147ec6c0fdc2fea14244677 (patch) | |
tree | e8cf242431f41e77a2fbfff2475f7792a79109ee /engines/fullpipe/scenes/scene27.cpp | |
parent | a7c0495d70f11981e6366a830c4b5178ab1e3ad1 (diff) | |
download | scummvm-rg350-f5ffef7b66230aa4d147ec6c0fdc2fea14244677.tar.gz scummvm-rg350-f5ffef7b66230aa4d147ec6c0fdc2fea14244677.tar.bz2 scummvm-rg350-f5ffef7b66230aa4d147ec6c0fdc2fea14244677.zip |
FULLPIPE: Implement sceneHandler27_aimDude()
Diffstat (limited to 'engines/fullpipe/scenes/scene27.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene27.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp index c3cba7fc74..46eebba8b7 100644 --- a/engines/fullpipe/scenes/scene27.cpp +++ b/engines/fullpipe/scenes/scene27.cpp @@ -186,7 +186,16 @@ void sceneHandler27_sub04(ExCommand *cmd) { } void sceneHandler27_aimDude() { - warning("STUB: sceneHandler27_aimDude()"); + int phase = (g_vars->scene27_var16 - g_fp->_mouseScreenPos.x) / 20 + 6; + + if (phase < 6) + phase = 6; + + if (phase > 11) + phase = 11; + + if (g_fp->_aniMan->_movement) + g_fp->_aniMan->_movement->setDynamicPhaseIndex(phase); } void sceneHandler27_throwBat() { |