diff options
author | Eugene Sandulenko | 2014-01-10 00:13:04 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-10 00:42:21 +0200 |
commit | 4d99ced17b21f14c7a76f29b5f6942108709fdc8 (patch) | |
tree | aa9a5031e5d5a563d590a3b7e4d4811f209f91fd /engines/fullpipe/scenes/scene33.cpp | |
parent | 10c17077542138830d903fb39733b515d57aa384 (diff) | |
download | scummvm-rg350-4d99ced17b21f14c7a76f29b5f6942108709fdc8.tar.gz scummvm-rg350-4d99ced17b21f14c7a76f29b5f6942108709fdc8.tar.bz2 scummvm-rg350-4d99ced17b21f14c7a76f29b5f6942108709fdc8.zip |
FULLPIPE: Implement sceneHandler33_switchVent()
Diffstat (limited to 'engines/fullpipe/scenes/scene33.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene33.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene33.cpp b/engines/fullpipe/scenes/scene33.cpp index 75192c4840..a5f2ea112c 100644 --- a/engines/fullpipe/scenes/scene33.cpp +++ b/engines/fullpipe/scenes/scene33.cpp @@ -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() { |