aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
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/scenes
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/scenes')
-rw-r--r--engines/fullpipe/scenes/scene04.cpp11
1 files changed, 10 insertions, 1 deletions
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() {