From b2fe937db5f54499676c860761360ea17df5c8f2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 2 Jan 2014 13:47:47 +0200 Subject: FULLPIPE: Implement scene30_enablePass() --- engines/fullpipe/scenes/scene30.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/fullpipe/scenes/scene30.cpp b/engines/fullpipe/scenes/scene30.cpp index 125f8a9291..ace3ce0d58 100644 --- a/engines/fullpipe/scenes/scene30.cpp +++ b/engines/fullpipe/scenes/scene30.cpp @@ -37,7 +37,12 @@ namespace Fullpipe { void scene30_enablePass(Scene *sc) { - warning("STUB: scene30_enablePass()"); + MovGraphLink *lnk = getSc2MctlCompoundBySceneId(sc->_sceneId)->getLinkByName(sO_WayToPipe); + + if (g_fp->getObjectState(sO_Leg) == g_fp->getObjectEnumState(sO_Leg, sO_WithAll)) + lnk->_flags &= 0xDFFFFFFF; + else + lnk->_flags |= 0x20000000; } void scene30_initScene(Scene *sc, int flag) { -- cgit v1.2.3