Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler32_potLogic()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 7, 2014
1 parent ae5389a commit d821719
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -1058,6 +1058,7 @@ namespace Fullpipe {
#define ANI_BUTTON_32 5347
#define ANI_CACTUS 2267
#define ANI_FLAG 2257
#define ANI_KADKA 2670
#define ANI_TESTO_BLUE 2659
#define ANI_TESTO_GREEN 2662
#define ANI_TESTO_ORANGE 2656
Expand All @@ -1076,6 +1077,7 @@ namespace Fullpipe {
#define MV_FLG_STARTR 2263
#define MV_FLG_STOPL 2261
#define MV_FLG_STOPR 2265
#define MV_MAN32_STANDUP 2313
#define MV_TSTG_FLOW 2663
#define MV_TSTO_FLOW 2657
#define PIC_SC32_LADDER 4296
Expand Down
23 changes: 22 additions & 1 deletion engines/fullpipe/scenes/scene32.cpp
Expand Up @@ -190,7 +190,28 @@ void sceneHandler32_ladderLogic(ExCommand *cmd) {
}

void sceneHandler32_potLogic(ExCommand *cmd) {
warning("STUB: sceneHandler32_potLogic(cmd)");
if (g_vars->scene32_var08 < 0 || g_vars->scene32_var08 > 20) {
MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());

ExCommand *ex = new ExCommand(ANI_MAN, 1, MV_MAN32_STANDUP, 0, 0, 0, 1, 0, 0, 0);

ex->_excFlags |= 2;

mq->addExCommandToEnd(ex);

StaticANIObject *ani = g_fp->_currentScene->getStaticANIObjectAtPos(cmd->_sceneClickX, cmd->_sceneClickY);

if (!ani || ani->_id != ANI_KADKA)
mq->addExCommandToEnd(cmd->createClone());

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

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

g_vars->scene32_var07 = 0;
}
}

int sceneHandler32(ExCommand *cmd) {
Expand Down

0 comments on commit d821719

Please sign in to comment.