[Scummvm-cvs-logs] scummvm master -> f835723aab1a7700573eb315122ab8d3f888894f

sev- sev at scummvm.org
Sun Dec 8 00:13:53 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f835723aab FULLPIPE: Implement sceneHandler04_friesAreWalking()


Commit: f835723aab1a7700573eb315122ab8d3f888894f
    https://github.com/scummvm/scummvm/commit/f835723aab1a7700573eb315122ab8d3f888894f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-12-07T15:13:27-08:00

Commit Message:
FULLPIPE: Implement sceneHandler04_friesAreWalking()

Changed paths:
    engines/fullpipe/scenes/scene04.cpp



diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index dab40ec..7ee8899 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;
 }






More information about the Scummvm-git-logs mailing list