aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes/scene13.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-30 17:24:18 +0200
committerEugene Sandulenko2016-09-30 22:35:55 +0200
commitc294f9ae8d03719c8c09c131f112419a9df7a011 (patch)
tree8f37daee9f65674a9582c269d27065a9f2999541 /engines/fullpipe/scenes/scene13.cpp
parent424d2380b5268504ffee2b72d14594277a38324d (diff)
downloadscummvm-rg350-c294f9ae8d03719c8c09c131f112419a9df7a011.tar.gz
scummvm-rg350-c294f9ae8d03719c8c09c131f112419a9df7a011.tar.bz2
scummvm-rg350-c294f9ae8d03719c8c09c131f112419a9df7a011.zip
FULLPIPE: Fix whirlgig rotation on scene13
Diffstat (limited to 'engines/fullpipe/scenes/scene13.cpp')
-rw-r--r--engines/fullpipe/scenes/scene13.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene13.cpp b/engines/fullpipe/scenes/scene13.cpp
index 9908b9a7c9..12fe1dd35d 100644
--- a/engines/fullpipe/scenes/scene13.cpp
+++ b/engines/fullpipe/scenes/scene13.cpp
@@ -36,6 +36,10 @@
namespace Fullpipe {
+void scene13_whirlgigCallback(int *phase) {
+ // Do nothing
+}
+
void scene13_initScene(Scene *sc) {
g_vars->scene13_whirlgig = sc->getStaticANIObject1ById(ANI_WHIRLGIG_13, -1);
g_vars->scene13_guard = sc->getStaticANIObject1ById(ANI_STOROZH, -1);
@@ -63,7 +67,7 @@ void scene13_initScene(Scene *sc) {
lnk->_flags &= 0xDFFFFFFF;
g_vars->scene13_whirlgig->stopAnim_maybe();
- g_vars->scene13_whirlgig->_callback2 = 0;
+ g_vars->scene13_whirlgig->_callback2 = scene13_whirlgigCallback;
g_vars->scene13_whirlgig->startAnim(MV_WHR13_SPIN, 0, -1);
if (g_vars->scene13_whirlgig->_movement)
@@ -155,7 +159,7 @@ void sceneHandler13_closeFast() {
}
void sceneHandler13_stopWhirlgig() {
- g_vars->scene13_whirlgig->_callback2 = 0;
+ g_vars->scene13_whirlgig->_callback2 = scene13_whirlgigCallback;
g_fp->stopAllSoundInstances(SND_13_018);
g_fp->playSound(SND_13_033, 0);