Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler32_ladderLogic()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 7, 2014
1 parent 7292a08 commit ae5389a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -1087,6 +1087,7 @@ namespace Fullpipe {
#define QU_SC32_ENTERLIFT 2827
#define QU_SC32_EXITLIFT 2828
#define QU_SC32_FALLHANDLE 5351
#define QU_SC32_FROMLADDER 4300
#define QU_SC32_SHOWHANDLE 2399
#define ST_BTN32_OFF 5349
#define ST_BTN32_ON 5350
Expand Down
16 changes: 15 additions & 1 deletion engines/fullpipe/scenes/scene32.cpp
Expand Up @@ -172,7 +172,21 @@ void sceneHandler32_animateCactus() {
}

void sceneHandler32_ladderLogic(ExCommand *cmd) {
warning("STUB: sceneHandler32_ladderLogic(cmd)");
MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC32_FROMLADDER), 0, 0);

if (g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY) != PIC_SC32_LADDER)
mq->addExCommandToEnd(cmd->createClone());

mq->setFlags(mq->getFlags() | 1);

g_fp->_aniMan->changeStatics2(ST_MAN_STANDLADDER);
if (!mq->chain(g_fp->_aniMan))
delete mq;

g_vars->scene32_var09 = 0;

getCurrSceneSc2MotionController()->setEnabled();
getGameLoaderInteractionController()->enableFlag24();
}

void sceneHandler32_potLogic(ExCommand *cmd) {
Expand Down

0 comments on commit ae5389a

Please sign in to comment.