aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2013-11-27 23:38:22 -0500
committerEugene Sandulenko2013-11-27 23:42:15 -0500
commitc8c901137165a063a9dbc533c9c35592abb1eff6 (patch)
treea007b2961fbed0ccb055f0a1d4fac06d589aa182 /engines/fullpipe
parent8ac319365a7fd68bf09ed0edacddaa3e5f1dda09 (diff)
downloadscummvm-rg350-c8c901137165a063a9dbc533c9c35592abb1eff6.tar.gz
scummvm-rg350-c8c901137165a063a9dbc533c9c35592abb1eff6.tar.bz2
scummvm-rg350-c8c901137165a063a9dbc533c9c35592abb1eff6.zip
FULLPIPE: Implement sceneHandler04_sub3()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/constants.h1
-rw-r--r--engines/fullpipe/scenes.h2
-rw-r--r--engines/fullpipe/scenes/scene04.cpp9
3 files changed, 10 insertions, 2 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 2e15423055..91593684e4 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -191,6 +191,7 @@ namespace Fullpipe {
#define QU_INTR_FINISH 5138
#define QU_INTR_GETUPMAN 5136
#define QU_INTR_STARTINTRO 5133
+#define QU_KOZAW_WALK 505
#define QU_PNK_CLICK 550
#define QU_SC3_ENTERLIFT 2779
#define QU_SC3_EXITLIFT 2808
diff --git a/engines/fullpipe/scenes.h b/engines/fullpipe/scenes.h
index 277beb0083..0ff34d51b5 100644
--- a/engines/fullpipe/scenes.h
+++ b/engines/fullpipe/scenes.h
@@ -89,7 +89,7 @@ public:
Common::Point scene04_jumpingKozyawki[20];
Common::Point scene04_jumpRotateKozyawki[20];
- Common::Array<StaticANIObject *> scene04_kozyawkiObjList;
+ Common::List<StaticANIObject *> scene04_kozyawkiObjList;
Common::Array<GameObject *> scene04_bottleObjList;
Common::Array<StaticANIObject *> scene04_kozyawkiAni;
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index dab2131e04..db5e327c14 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -328,7 +328,14 @@ void sceneHandler04_sub1(ExCommand *ex) {
}
void sceneHandler04_sub3() {
- warning("sceneHandler04_sub3()");
+ if (g_vars->scene04_kozyawkiObjList.size()) {
+ g_vars->scene04_var05 = g_vars->scene04_kozyawkiObjList.front();
+ g_vars->scene04_kozyawkiObjList.pop_front();
+
+ MessageQueue *mq = new MessageQueue(g_fullpipe->_currentScene->getMessageQueueById(QU_KOZAW_WALK), 0, 1);
+ mq->replaceKeyCode(-1, g_vars->scene04_var05->_okeyCode);
+ mq->chain(0);
+ }
}
void sceneHandler04_sub4() {