aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-02-03 21:36:36 +0200
committerEugene Sandulenko2014-02-03 21:36:36 +0200
commit2ed9d0da3e05f316bcb0fd50204e209479996275 (patch)
treedaf7e9e5f99233cc6219f1219e14a1b7dc6189e7
parenta52c6eb5a5c0f80d7991505ff5867f5da43c3b8b (diff)
downloadscummvm-rg350-2ed9d0da3e05f316bcb0fd50204e209479996275.tar.gz
scummvm-rg350-2ed9d0da3e05f316bcb0fd50204e209479996275.tar.bz2
scummvm-rg350-2ed9d0da3e05f316bcb0fd50204e209479996275.zip
FULLPIPE: Implementated sceneHandler27_showNextBat()
-rw-r--r--engines/fullpipe/constants.h1
-rw-r--r--engines/fullpipe/scenes/scene27.cpp9
2 files changed, 9 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 8e1ec4d7ca..889de5a252 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -1100,6 +1100,7 @@ namespace Fullpipe {
#define PIC_SC27_HITZONE2 4756
#define QU_DRV_GIVEVENT 2040
#define QU_MID_CLEANVENT 4583
+#define QU_SC27_SHOWBET 3368
#define SND_27_027 4128
#define SND_27_044 4687
#define ST_DRV_VENT 1996
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp
index 4593f905ad..2d75445219 100644
--- a/engines/fullpipe/scenes/scene27.cpp
+++ b/engines/fullpipe/scenes/scene27.cpp
@@ -192,7 +192,14 @@ void sceneHandler27_takeVent() {
}
void sceneHandler27_showNextBat() {
- warning("STUB: sceneHandler27_showNextBat()");
+ if (g_vars->scene27_bat) {
+ MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC27_SHOWBET), 0, 1);
+
+ mq->replaceKeyCode(-1, g_vars->scene27_bat->_okeyCode);
+ mq->chain(0);
+ }
+
+ g_vars->scene27_batHandler->_priority = 1045;
}
int sceneHandler27_updateScreenCallback() {