diff options
author | Eugene Sandulenko | 2014-01-06 00:29:58 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-06 00:29:58 +0200 |
commit | 9e8d3c094954db049883ef5b2a8f0b2afd53ace4 (patch) | |
tree | bcd778d586866686c6d5871568d26e07c7b0efd6 /engines | |
parent | 07448e89f70bbd2e210f5f80f36c634affe40c6c (diff) | |
download | scummvm-rg350-9e8d3c094954db049883ef5b2a8f0b2afd53ace4.tar.gz scummvm-rg350-9e8d3c094954db049883ef5b2a8f0b2afd53ace4.tar.bz2 scummvm-rg350-9e8d3c094954db049883ef5b2a8f0b2afd53ace4.zip |
FULLPIPE: Implement sceneHandler26_showVent()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/constants.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene26.cpp | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index 40809d4e49..5ab328a792 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -948,6 +948,8 @@ namespace Fullpipe { #define SND_26_018 5340 #define ST_CHI_EMPTY 1959 #define ST_CHI_NORM 1960 +#define ST_VNT26_RIGHT2 3348 +#define ST_VNT26_UP2 1948 // Scene 30 #define ANI_LEG 2322 diff --git a/engines/fullpipe/scenes/scene26.cpp b/engines/fullpipe/scenes/scene26.cpp index 4fbcbf35db..65ce6dd95c 100644 --- a/engines/fullpipe/scenes/scene26.cpp +++ b/engines/fullpipe/scenes/scene26.cpp @@ -112,7 +112,19 @@ void sceneHandler26_testVent() { } void sceneHandler26_showVent() { - warning("STUB: sceneHandler26_showVent()"); + if (g_vars->scene26_var05) { + int id = g_vars->scene26_var05->_statics->_staticsId; + + if (id == ST_VNT26_UP2) { + g_vars->scene26_var05->changeStatics2(ST_VNT26_RIGHT2); + } else { + if (id != ST_VNT26_RIGHT2) + return; + + g_vars->scene26_var05->changeStatics2(ST_VNT26_UP2); + } + g_vars->scene26_var05->show1(-1, -1, -1, 0); + } } void sceneHandler26_hideVent() { |