diff options
-rw-r--r-- | engines/fullpipe/constants.h | 1 | ||||
-rw-r--r-- | engines/fullpipe/scenes.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene04.cpp | 9 |
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() { |