Skip to content

Commit

Permalink
FULLPIPE: Implement scene23_setGiraffeState()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 4, 2014
1 parent 7cb50d7 commit b0ddd17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -791,6 +791,8 @@ namespace Fullpipe {
#define PIC_SC23_BTN3 1731
#define PIC_SC23_BTN4 1732
#define PIC_SC23_LADDERU 3411
#define QU_GRFU_TURN_UD 1664
#define QU_GRFU_TURN_UL 1662
#define ST_CND_5 1713
#define ST_GRFG_BALD 1675
#define ST_GRFG_EMPTY 1674
Expand Down
7 changes: 7 additions & 0 deletions engines/fullpipe/scenes/scene23.cpp
Expand Up @@ -134,6 +134,13 @@ void scene23_initScene(Scene *sc) {
g_fp->_currentScene = oldsc;
}

void scene23_setGiraffeState() {
if (g_fp->getObjectState(sO_UpperHatch_23) == g_fp->getObjectEnumState(sO_UpperHatch_23, sO_Opened)) {
g_fp->_behaviorManager->setBehaviorEnabled(g_vars->scene23_giraffeTop, ST_GRFU_UP, QU_GRFU_TURN_UL, 0);
g_fp->_behaviorManager->setBehaviorEnabled(g_vars->scene23_giraffeTop, ST_GRFU_UP, QU_GRFU_TURN_UD, 0);
}
}

int scene23_updateCursor() {
g_fp->updateCursorCommon();

Expand Down

0 comments on commit b0ddd17

Please sign in to comment.