aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-11-21 21:11:46 -0800
committerEugene Sandulenko2013-11-22 00:45:32 -0700
commitb0ca746a185a137be3848ebc1dec321243b485ec (patch)
treeca195c1cac7270aa6d1b943545c9af04504bc336
parent8ae2cf1ed418cec0cd3dec6758900068ad173c02 (diff)
downloadscummvm-rg350-b0ca746a185a137be3848ebc1dec321243b485ec.tar.gz
scummvm-rg350-b0ca746a185a137be3848ebc1dec321243b485ec.tar.bz2
scummvm-rg350-b0ca746a185a137be3848ebc1dec321243b485ec.zip
FULLPIPE: More work on scene 4
-rw-r--r--engines/fullpipe/constants.h3
-rw-r--r--engines/fullpipe/scenes/scene04.cpp14
2 files changed, 15 insertions, 2 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index fd1a0112b0..0ca1dd503d 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -118,6 +118,7 @@ namespace Fullpipe {
#define MV_MAN_TOLADDER 448
#define MV_MAN_TOLADDER2 2841
#define MV_MAN_TURN_LU 486
+#define MV_PNK_WEIGHTRIGHT 502
#define MV_SPK4_PLAY 3276
#define PIC_CMN_EVAL 3468
#define PIC_CSR_DEFAULT 4891
@@ -180,6 +181,7 @@ namespace Fullpipe {
#define QU_INTR_FINISH 5138
#define QU_INTR_GETUPMAN 5136
#define QU_INTR_STARTINTRO 5133
+#define QU_PNK_CLICK 550
#define QU_SC3_ENTERLIFT 2779
#define QU_SC3_EXITLIFT 2808
#define SC_1 301
@@ -236,6 +238,7 @@ namespace Fullpipe {
#define SC_TITLES 5166
#define SND_4_010 3125
#define SND_4_012 3127
+#define SND_4_033 4990
#define SND_CMN_031 3516
#define SND_CMN_070 5199
#define SND_INTR_019 5220
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index 119fed5041..6db3359bd7 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -217,7 +217,8 @@ void sceneHandlers_sub01(ExCommand *ex) {
}
void sceneHandler04_clickBottle() {
- warning("sceneHandler04_clickBottle()");
+ if (!g_vars->scene04_var02)
+ g_vars->scene04_var20 += 5;
}
void sceneHandler04_clickButton() {
@@ -228,8 +229,17 @@ void sceneHandler04_clickLadder() {
warning("sceneHandler04_clickLadder()");
}
+void sceneHandler04_sub13() {
+ warning("sceneHandler04_sub13()");
+}
+
void sceneHandler04_clickPlank() {
- warning("sceneHandler04_clickPlank()");
+ if (sceneHandler04_friesAreWalking())
+ sceneHandler04_sub13();
+ else if (g_vars->scene04_var01)
+ g_fullpipe->playSound(SND_4_033, 0);
+ else if (!g_vars->scene04_soundPlaying)
+ chainQueue(QU_PNK_CLICK, 0);
}
void sceneHandler04_dropBottle() {