diff options
author | Eugene Sandulenko | 2014-01-05 15:27:17 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-05 17:13:32 +0200 |
commit | 52d9bb8583d6001542b67eb1a9e1def44dd7119b (patch) | |
tree | 9102e814a70e3eedb11f25a6175f3c60f75dc281 /engines/fullpipe/scenes | |
parent | f082991c65697dd5ff633a5ef0cfd880b71bb267 (diff) | |
download | scummvm-rg350-52d9bb8583d6001542b67eb1a9e1def44dd7119b.tar.gz scummvm-rg350-52d9bb8583d6001542b67eb1a9e1def44dd7119b.tar.bz2 scummvm-rg350-52d9bb8583d6001542b67eb1a9e1def44dd7119b.zip |
FULLPIPE: Implement sceneHandler25_sneeze() and stopBearders()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene25.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene25.cpp b/engines/fullpipe/scenes/scene25.cpp index ad2ca5abb3..927a6e4dd8 100644 --- a/engines/fullpipe/scenes/scene25.cpp +++ b/engines/fullpipe/scenes/scene25.cpp @@ -129,7 +129,9 @@ void scene25_setupWater(Scene *a1, int entranceId) { } void sceneHandler25_stopBearders() { - warning("STUB: sceneHandler25_stopBearders()"); + g_vars->scene25_var08 = 0; + + g_vars->scene25_var10.clear(); } void sceneHandler25_startBearders() { @@ -247,7 +249,17 @@ void sceneHandler25_animateBearders() { } void sceneHandler25_sneeze() { - warning("STUB: sceneHandler25_sneeze()"); + if (g_fp->_rnd->getRandomNumber(32767) % 10) { + if (g_fp->_aniMan->_statics->_staticsId == ST_MAN25_ONBOARD) { + g_fp->_aniMan->startAnim(MV_MAN25_ONBOARD, 0, -1); + } else if (g_fp->_aniMan->_statics->_staticsId == (ST_MAN25_ONBOARD|0x4000)) { + g_fp->_aniMan->startAnim(rMV_MAN25_ONBOARD, 0, -1); + } + } else if (g_fp->_aniMan->_statics->_staticsId == ST_MAN25_ONBOARD) { + g_fp->_aniMan->startAnim(MV_MAN25_CHIH, 0, -1); + } else if (g_fp->_aniMan->_statics->_staticsId == (ST_MAN25_ONBOARD|0x4000)) { + g_fp->_aniMan->startAnim(rMV_MAN25_CHIH, 0, -1); + } } void sceneHandler25_rowShovel() { |