Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler32_buttonPush()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 7, 2014
1 parent a7ae2b4 commit 7292a08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -1086,7 +1086,9 @@ namespace Fullpipe {
#define QU_KBK32_START 4982
#define QU_SC32_ENTERLIFT 2827
#define QU_SC32_EXITLIFT 2828
#define QU_SC32_FALLHANDLE 5351
#define QU_SC32_SHOWHANDLE 2399
#define ST_BTN32_OFF 5349
#define ST_BTN32_ON 5350
#define ST_FLG_LEFT 2260
#define ST_FLG_NORM 2259
Expand Down
10 changes: 9 additions & 1 deletion engines/fullpipe/scenes/scene32.cpp
Expand Up @@ -144,7 +144,15 @@ void sceneHandler32_trySit(ExCommand *cmd) {
}

void sceneHandler32_buttonPush() {
warning("STUB: sceneHandler32_buttonPush()");
if (g_fp->getObjectState(sO_ClockHandle) == g_fp->getObjectEnumState(sO_ClockHandle, sO_In_32_Sticks)) {
StaticANIObject *ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_INV_HANDLE, -1);
if (ani)
ani->changeStatics2(ST_HDL_PLUGGED);

chainQueue(QU_SC32_FALLHANDLE, 1);

g_vars->scene32_button->changeStatics2(ST_BTN32_OFF);
}
}

void sceneHandler32_installHandle() {
Expand Down

0 comments on commit 7292a08

Please sign in to comment.