diff options
author | Eugene Sandulenko | 2013-11-25 18:44:52 -0500 |
---|---|---|
committer | Eugene Sandulenko | 2013-11-25 18:44:52 -0500 |
commit | c665e99eda471b690161e086fe9433a143d2e3a8 (patch) | |
tree | a71d8d116a44bcc260639d5c3bd6c4b953cbe73c /engines/fullpipe | |
parent | 7c3588ec2a74aa75e3e1a06849b751b3c203d42a (diff) | |
download | scummvm-rg350-c665e99eda471b690161e086fe9433a143d2e3a8.tar.gz scummvm-rg350-c665e99eda471b690161e086fe9433a143d2e3a8.tar.bz2 scummvm-rg350-c665e99eda471b690161e086fe9433a143d2e3a8.zip |
FULLPIPE: Implement sceneHandler04_checkBigBallClick()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/constants.h | 1 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene04.cpp | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index edc956d660..2e15423055 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -25,6 +25,7 @@ namespace Fullpipe { +#define ANI_BIGBALL 4923 #define ANI_BOOT_1 4231 #define ANI_BUTTON 598 #define ANI_CLOCK 588 diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp index d658be517a..dab2131e04 100644 --- a/engines/fullpipe/scenes/scene04.cpp +++ b/engines/fullpipe/scenes/scene04.cpp @@ -216,6 +216,16 @@ void sceneHandlers_sub01(ExCommand *ex) { warning("sceneHandlers_sub01()"); } +void sceneHandler04_checkBigBallClick() { + StaticANIObject *ball = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_BIGBALL, -1); + + if (ball) + for (uint i = 0; i < ball->_movements.size(); i++) + ((Movement *)ball->_movements[i])->_counterMax = 73; + + g_vars->scene04_var13 = 1; +} + void sceneHandler04_clickBottle() { if (!g_vars->scene04_var02) g_vars->scene04_var20 += 5; |