From 085c53b0ec75f8f68ff2634c62ea0f08c5e78340 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 7 Feb 2014 20:37:10 +0200 Subject: FULLPIPE: Implement sceneHandler27_maidSwitchback() --- engines/fullpipe/constants.h | 1 + engines/fullpipe/scenes/scene27.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index 451cc9caf7..4d63031153 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -1108,6 +1108,7 @@ namespace Fullpipe { #define QU_DRV_PUSHBUTTON 2056 #define QU_DRV_PUSHBUTTON_NOVENT 4578 #define QU_MID_CLEANVENT 4583 +#define QU_MID_SWITCHBACK 2044 #define QU_SC27_RESTARTBETS 3370 #define QU_SC27_SHOWBET 3368 #define SND_27_026 4127 diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp index ba18c906fc..20e6850721 100644 --- a/engines/fullpipe/scenes/scene27.cpp +++ b/engines/fullpipe/scenes/scene27.cpp @@ -458,7 +458,10 @@ void sceneHandler27_driverPushButton() { } void sceneHandler27_maidSwitchback() { - warning("STUB: sceneHandler27_maidSwitchback()"); + if (g_fp->getObjectState(sO_Maid) == g_fp->getObjectEnumState(sO_Maid, sO_WithSwab)) { + g_vars->scene27_maid->changeStatics2(ST_MID_SWAB); + g_vars->scene27_maid->startMQIfIdle(QU_MID_SWITCHBACK, 1); + } } void sceneHandler27_batLogic() { -- cgit v1.2.3