diff options
author | Eugene Sandulenko | 2013-12-19 18:38:49 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-19 18:38:49 +0200 |
commit | 97cd39bb95321573bb233c10b379c5305410c30e (patch) | |
tree | 186fac3e666e51fb461c56cb8d08d08ac08daf6a | |
parent | 4193742c7cec54efc7b89b3f88b026553860caf8 (diff) | |
download | scummvm-rg350-97cd39bb95321573bb233c10b379c5305410c30e.tar.gz scummvm-rg350-97cd39bb95321573bb233c10b379c5305410c30e.tar.bz2 scummvm-rg350-97cd39bb95321573bb233c10b379c5305410c30e.zip |
FULLPIPE: Implement sceneHandler07_hideLuke()
-rw-r--r-- | engines/fullpipe/constants.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene07.cpp | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index b1df092ea6..b8f0fa9b82 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -148,6 +148,7 @@ namespace Fullpipe { #define MSG_UPDATEBOTTLE 613 #define MV_BLK_CLOSE 911 #define MV_BLK_OPEN 910 +#define MV_CST_CLOSELUKE 807 #define MV_EGTR_FATASK 5332 #define MV_IN1MAN_SLEEP 5111 #define MV_BDG_OPEN 1379 @@ -369,6 +370,7 @@ namespace Fullpipe { #define ST_EGTR_MID1 2863 #define ST_EGTR_MID2 2869 #define ST_EGTR_SLIM 336 +#define ST_HGN_LOOK 811 #define ST_HGN_LUKE 810 #define ST_HDL_BROKEN 3342 #define ST_HDL_DOWN 625 diff --git a/engines/fullpipe/scenes/scene07.cpp b/engines/fullpipe/scenes/scene07.cpp index a9267179a6..c0b8b75c93 100644 --- a/engines/fullpipe/scenes/scene07.cpp +++ b/engines/fullpipe/scenes/scene07.cpp @@ -77,7 +77,18 @@ void sceneHandler07_closeLuke() { } void sceneHandler07_hideLuke() { - warning("STUB: sceneHandler07_hideLuke()"); + g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_LUKE, -1)->hide(); + + Movement *mov = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_CORNERSITTER, -1)->_movement; + + if (mov) { + if (mov->_id == MV_CST_CLOSELUKE) { + StaticANIObject *ani = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_HOOLIGAN, -1); + + ani->changeStatics2(ST_HGN_LOOK); + ani->_flags &= 0xFFFB; + } + } } void sceneHandler07_showBox() { |