aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-03-12 00:20:38 +0200
committerEugene Sandulenko2014-03-12 00:20:56 +0200
commitc14e6a0272cde83ddc0b72c23c9ab26cd22f5587 (patch)
tree41bd96858ea80e7c738b93464c27e85363a73dff
parentac26163f4deeaafa3fd9062318359f7e1c371d59 (diff)
downloadscummvm-rg350-c14e6a0272cde83ddc0b72c23c9ab26cd22f5587.tar.gz
scummvm-rg350-c14e6a0272cde83ddc0b72c23c9ab26cd22f5587.tar.bz2
scummvm-rg350-c14e6a0272cde83ddc0b72c23c9ab26cd22f5587.zip
FULLPIPE: Implement sceneHandler18and19_animateRiders()
-rw-r--r--engines/fullpipe/scenes/scene18and19.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp
index 431470b738..1fb0f2eaaf 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) {