aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-10 00:13:04 +0200
committerEugene Sandulenko2014-01-10 00:42:21 +0200
commit4d99ced17b21f14c7a76f29b5f6942108709fdc8 (patch)
treeaa9a5031e5d5a563d590a3b7e4d4811f209f91fd /engines
parent10c17077542138830d903fb39733b515d57aa384 (diff)
downloadscummvm-rg350-4d99ced17b21f14c7a76f29b5f6942108709fdc8.tar.gz
scummvm-rg350-4d99ced17b21f14c7a76f29b5f6942108709fdc8.tar.bz2
scummvm-rg350-4d99ced17b21f14c7a76f29b5f6942108709fdc8.zip
FULLPIPE: Implement sceneHandler33_switchVent()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/constants.h4
-rw-r--r--engines/fullpipe/scenes/scene33.cpp13
2 files changed, 16 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 16dbe34a4f..5f2b8fe93a 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -1115,9 +1115,13 @@ namespace Fullpipe {
#define MSG_SC33_TESTMUG 5185
#define MSG_SC33_TRYKUBIK 4980
#define MSG_SC33_UPDATEKUBIK 5346
+#define MV_VNT33_TURND 2638
+#define MV_VNT33_TURNR 2641
#define PIC_SC33_LTRUBA 2618
#define PIC_SC33_ZONES 5298
#define QU_KBK33_START 4983
+#define ST_VNT33_DOWN 2640
+#define ST_VNT33_RIGHT 2639
// Scene 36
#define ANI_SCISSORS_36 2647
diff --git a/engines/fullpipe/scenes/scene33.cpp b/engines/fullpipe/scenes/scene33.cpp
index 75192c4840..a5f2ea112c 100644
--- a/engines/fullpipe/scenes/scene33.cpp
+++ b/engines/fullpipe/scenes/scene33.cpp
@@ -88,7 +88,18 @@ void sceneHandler33_processVents() {
}
void sceneHandler33_switchVent(StaticANIObject *ani) {
- warning("STUB: sceneHandler33_switchVent(");
+ int mv = 0;
+
+ if (ani->_statics->_staticsId == ST_VNT33_DOWN)
+ mv = MV_VNT33_TURNR;
+
+ if (ani->_statics->_staticsId == ST_VNT33_RIGHT)
+ mv = MV_VNT33_TURND;
+
+ if (mv)
+ ani->startAnim(mv, 0, -1);
+
+ g_vars->scene33_ventsState[ani->_okeyCode] = !g_vars->scene33_ventsState[ani->_okeyCode];
}
void sceneHandler33_tryCube() {