aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-07 23:43:16 +0200
committerEugene Sandulenko2013-12-08 01:13:27 +0200
commitf835723aab1a7700573eb315122ab8d3f888894f (patch)
treeedaad868eaecc97596aae53531a698fac8dd5ee9 /engines/fullpipe
parent8e18bce1dbda008c701c6db7391aa734b1591436 (diff)
downloadscummvm-rg350-f835723aab1a7700573eb315122ab8d3f888894f.tar.gz
scummvm-rg350-f835723aab1a7700573eb315122ab8d3f888894f.tar.bz2
scummvm-rg350-f835723aab1a7700573eb315122ab8d3f888894f.zip
FULLPIPE: Implement sceneHandler04_friesAreWalking()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/scenes/scene04.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index dab40ec55a..7ee889954f 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -196,7 +196,19 @@ void scene04_initScene(Scene *sc) {
}
bool sceneHandler04_friesAreWalking() {
- warning("STUB: sceneHandler04_friesAreWalking()");
+ if (g_vars->scene04_var01 && g_fullpipe->_aniMan->isIdle() && !(g_fullpipe->_aniMan->_flags & 0x100)) {
+ int col = g_vars->scene04_ladder->collisionDetection(g_fullpipe->_aniMan);
+ if (col >= 3 && col <= 6 ) {
+ Movement *koz;
+
+ if (!g_vars->scene04_walkingKozyawka
+ || (koz = g_vars->scene04_walkingKozyawka->_movement) == 0
+ || koz->_id != MV_KZW_WALKPLANK
+ || koz->_currDynamicPhaseIndex < 10
+ || koz->_currDynamicPhaseIndex > 41)
+ return true;
+ }
+ }
return false;
}