aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-03 22:16:43 +0200
committerEugene Sandulenko2013-12-03 22:18:59 +0200
commit5980bf8d2af2f67a63537fc3911e1fdc7af56602 (patch)
tree100ea5d892fd5eb0306134595cdaba7bd2ef3bf7 /engines/fullpipe
parentff20d914e9f97a753f831441aae1646ba1c3ad2d (diff)
downloadscummvm-rg350-5980bf8d2af2f67a63537fc3911e1fdc7af56602.tar.gz
scummvm-rg350-5980bf8d2af2f67a63537fc3911e1fdc7af56602.tar.bz2
scummvm-rg350-5980bf8d2af2f67a63537fc3911e1fdc7af56602.zip
FULLPIPE: Implement sceneHandler04_testPlank()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/constants.h4
-rw-r--r--engines/fullpipe/scenes/scene04.cpp11
2 files changed, 13 insertions, 2 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index b7ab84e191..77eb83d460 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -96,7 +96,6 @@ namespace Fullpipe {
#define MSG_SC4_KOZAWFALL 2858
#define MSG_SC4_MANFROMBOTTLE 2854
#define MSG_SC4_MANTOBOTTLE 2852
-#define PIC_SC4_LADDER 1438
#define MSG_GOTOLADDER 618
#define MSG_SHAKEBOTTLE 584
#define MSG_SHOOTKOZAW 557
@@ -110,6 +109,8 @@ namespace Fullpipe {
#define MV_IN1MAN_SLEEP 5111
#define MV_KZW_JUMP 558
#define MV_KZW_JUMPROTATE 561
+#define MV_KZW_TOHOLERV 537
+#define MV_KZW_WALKPLANK 500
#define MV_BDG_OPEN 1379
#define MV_BTN_CLICK 599
#define MV_CLK_GO 589
@@ -288,6 +289,7 @@ namespace Fullpipe {
#define ST_MAN_EMPTY 476
#define ST_MAN_RIGHT 325
#define ST_MAN_SIT 1164
+#define ST_PNK_WEIGHTLEFT 503
#define TrubaDown 697
#define TrubaLeft 474
#define TrubaRight 696
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index c025d41cbb..98ded32599 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -485,7 +485,16 @@ void sceneHandler04_takeKozyawka() {
}
void sceneHandler04_testPlank(ExCommand *ex) {
- warning("sceneHandler04_testPlank()");
+ MessageQueue *mq = g_fullpipe->_globalMessageQueueList->getMessageQueueById(ex->_parId);
+
+ if (!mq)
+ return;
+
+ if (g_vars->scene04_plank->_movement || !g_vars->scene04_plank->_statics || g_vars->scene04_plank->_statics->_staticsId != ST_PNK_WEIGHTLEFT) {
+ mq->getExCommandByIndex(0)->_messageNum = MV_KZW_TOHOLERV;
+ } else {
+ mq->getExCommandByIndex(0)->_messageNum = MV_KZW_WALKPLANK;
+ }
}
void sceneHandler04_updateBottle() {