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

sev- sev at scummvm.org
Tue Mar 11 23:21:43 CET 2014


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:
c14e6a0272 FULLPIPE: Implement sceneHandler18and19_animateRiders()


Commit: c14e6a0272cde83ddc0b72c23c9ab26cd22f5587
    https://github.com/scummvm/scummvm/commit/c14e6a0272cde83ddc0b72c23c9ab26cd22f5587
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-03-12T00:20:56+02:00

Commit Message:
FULLPIPE: Implement sceneHandler18and19_animateRiders()

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



diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp
index 431470b..1fb0f2e 100644
--- a/engines/fullpipe/scenes/scene18and19.cpp
+++ b/engines/fullpipe/scenes/scene18and19.cpp
@@ -625,7 +625,26 @@ void sceneHandler18and19_drawRiders() {
 }
 
 void sceneHandler18and19_animateRiders() {
-	warning("STUB: sceneHandler18and19_animateRiders()");
+	for (uint i = 0; i < g_vars->scene18_var07.size(); i++) {
+		Swinger *swinger = g_vars->scene18_var07[i];
+
+		if (!swinger->ani->_movement) {
+			int mv = 0;
+
+			if (swinger->sflags & 2)
+				mv = MV_KSL_SWINGBOY;
+			else if (swinger->sflags & 4)
+				mv = MV_KSL_SWINGGIRL;
+			else if (swinger->sflags & 0x20)
+				mv = MV_KSL_SWINGMAN;
+
+			if (mv)
+				swinger->ani->startAnim(mv, 0, -1);
+
+			if (swinger->ani->_movement)
+				swinger->ani->_movement->_counter = 0;
+		}
+	}
 }
 
 int sceneHandler18(ExCommand *cmd) {






More information about the Scummvm-git-logs mailing list