From c2493c0690b3e3bb9ace7f9bfcdc0a1e8c838053 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 2 Jan 2014 13:22:30 +0200 Subject: FULLPIPE: Implement sceneHandler31_testCactus() --- engines/fullpipe/scenes/scene31.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/fullpipe/scenes/scene31.cpp b/engines/fullpipe/scenes/scene31.cpp index 30763c04d5..9874772685 100644 --- a/engines/fullpipe/scenes/scene31.cpp +++ b/engines/fullpipe/scenes/scene31.cpp @@ -65,7 +65,17 @@ void scene31_initScene(Scene *sc) { } void sceneHandler31_testCactus(ExCommand *cmd) { - warning("STUB: sceneHandler31_testCactus"); + if ((g_vars->scene31_cactus->_flags & 4) && g_vars->scene31_cactus->_statics->_staticsId == ST_CTS31_GROWN2) { + MessageQueue *mq = g_fp->_globalMessageQueueList->getMessageQueueById(cmd->_parId); + + if (mq) { + mq->getExCommandByIndex(0)->_messageKind = 0; + mq->getExCommandByIndex(0)->_excFlags |= 1; + + mq->getExCommandByIndex(1)->_messageKind = 0; + mq->getExCommandByIndex(1)->_excFlags |= 1; + } + } } int sceneHandler31(ExCommand *cmd) { -- cgit v1.2.3