diff options
author | Eugene Sandulenko | 2014-01-01 14:38:41 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-01 14:38:41 +0200 |
commit | eca37854d5a3264200ed7e9dd0f62b054e40c716 (patch) | |
tree | c52b8f4ca14e6b36f8fd3413c6eb0b7946dc148a | |
parent | 1fea33cf4b2c369da8f3acbac0570cc4b2ce8abe (diff) | |
download | scummvm-rg350-eca37854d5a3264200ed7e9dd0f62b054e40c716.tar.gz scummvm-rg350-eca37854d5a3264200ed7e9dd0f62b054e40c716.tar.bz2 scummvm-rg350-eca37854d5a3264200ed7e9dd0f62b054e40c716.zip |
FULLPIPE: Implement sceneHandler16_startLaugh()
-rw-r--r-- | engines/fullpipe/constants.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene16.cpp | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index aefe91ff23..8b8664f2d2 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -663,11 +663,13 @@ namespace Fullpipe { #define MV_GRL_FALL 3115 #define MV_GRL_LAUGH_POPA 3278 #define PIC_SC16_TUMBA 1368 +#define QU_SC16_GIRLLAUGH 1375 #define QU_SC16_SHOWMUG 1361 #define SND_16_034 3854 #define SND_16_035 3855 #define SND_16_037 3857 #define ST_GRL_LAUGH 1342 +#define ST_GRL_STAND 1337 #define ST_MUG_EMPTY 1298 #define ST_MUG_FULL 1360 diff --git a/engines/fullpipe/scenes/scene16.cpp b/engines/fullpipe/scenes/scene16.cpp index 818b479a3b..8129b2752b 100644 --- a/engines/fullpipe/scenes/scene16.cpp +++ b/engines/fullpipe/scenes/scene16.cpp @@ -159,7 +159,19 @@ void sceneHandler16_fillMug() { } void sceneHandler16_startLaugh() { - warning("STUB: sceneHandler16_startLaugh()"); + StaticANIObject *girl = g_fp->_currentScene->getStaticANIObject1ById(ANI_GIRL, -1); + + girl->changeStatics2(ST_GRL_STAND); + + MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GIRLLAUGH), 0, 1); + + mq->replaceKeyCode(-1, girl->_okeyCode); + mq->setFlags(mq->getFlags() | 1); + mq->chain(0); + + g_fp->getGameLoaderGameVar()->getSubVarByName("OBJSTATES")->setSubVarAsInt(sO_DudeSwinged, 0); + + g_vars->scene16_var09 = 1; } void sceneHandler16_sub02() { |