Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler33_switchVent()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 9, 2014
1 parent 10c1707 commit 4d99ced
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -1115,9 +1115,13 @@ namespace Fullpipe {
#define MSG_SC33_TESTMUG 5185
#define MSG_SC33_TRYKUBIK 4980
#define MSG_SC33_UPDATEKUBIK 5346
#define MV_VNT33_TURND 2638
#define MV_VNT33_TURNR 2641
#define PIC_SC33_LTRUBA 2618
#define PIC_SC33_ZONES 5298
#define QU_KBK33_START 4983
#define ST_VNT33_DOWN 2640
#define ST_VNT33_RIGHT 2639

// Scene 36
#define ANI_SCISSORS_36 2647
Expand Down
13 changes: 12 additions & 1 deletion engines/fullpipe/scenes/scene33.cpp
Expand Up @@ -88,7 +88,18 @@ void sceneHandler33_processVents() {
}

void sceneHandler33_switchVent(StaticANIObject *ani) {
warning("STUB: sceneHandler33_switchVent(");
int mv = 0;

if (ani->_statics->_staticsId == ST_VNT33_DOWN)
mv = MV_VNT33_TURNR;

if (ani->_statics->_staticsId == ST_VNT33_RIGHT)
mv = MV_VNT33_TURND;

if (mv)
ani->startAnim(mv, 0, -1);

g_vars->scene33_ventsState[ani->_okeyCode] = !g_vars->scene33_ventsState[ani->_okeyCode];
}

void sceneHandler33_tryCube() {
Expand Down

0 comments on commit 4d99ced

Please sign in to comment.