Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler32_trySit()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 7, 2014
1 parent 929c868 commit b495a16
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -1078,6 +1078,7 @@ namespace Fullpipe {
#define MV_FLG_STARTR 2263
#define MV_FLG_STOPL 2261
#define MV_FLG_STOPR 2265
#define MV_MAN32_SITDOWN 2276
#define MV_MAN32_STANDUP 2313
#define MV_TSTG_FLOW 2663
#define MV_TSTO_FLOW 2657
Expand Down
24 changes: 23 additions & 1 deletion engines/fullpipe/scenes/scene32.cpp
Expand Up @@ -173,7 +173,29 @@ void sceneHandler32_startFlagRight() {
}

void sceneHandler32_trySit(ExCommand *cmd) {
warning("STUB: sceneHandler32_trySit(cmd)");
MessageQueue *mq = g_fp->_globalMessageQueueList->getMessageQueueById(cmd->_parId);

if (!mq || !mq->getCount() <= 0)
return;

ExCommand *ex = mq->getExCommandByIndex(0);

if (g_vars->scene32_var10 || g_vars->scene32_cactus->_movement
|| g_vars->scene32_cactus->_statics->_staticsId != ST_CTS_EMPTY
|| (g_vars->scene32_var08 >= 0 && g_vars->scene32_var08 <= 20)) {
ex->_messageKind = 0;
ex->_excFlags |= 1;
} else {
ex->_parentId = ANI_MAN;
ex->_messageKind = 1;
ex->_messageNum = MV_MAN32_SITDOWN;
ex->_keyCode = g_fp->_aniMan->_okeyCode;

g_vars->scene32_var07 = 1;

getCurrSceneSc2MotionController()->clearEnabled();
getGameLoaderInteractionController()->disableFlag24();
}
}

void sceneHandler32_buttonPush() {
Expand Down

0 comments on commit b495a16

Please sign in to comment.