From 9e8d3c094954db049883ef5b2a8f0b2afd53ace4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 6 Jan 2014 00:29:58 +0200 Subject: FULLPIPE: Implement sceneHandler26_showVent() --- engines/fullpipe/constants.h | 2 ++ engines/fullpipe/scenes/scene26.cpp | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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() { -- cgit v1.2.3