aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/constants.h3
-rw-r--r--engines/fullpipe/scenes/scene27.cpp14
2 files changed, 16 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index f1d2d873fc..451cc9caf7 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -1105,6 +1105,8 @@ namespace Fullpipe {
#define MV_MAN27_THROWBET 1989
#define PIC_SC27_HITZONE2 4756
#define QU_DRV_GIVEVENT 2040
+#define QU_DRV_PUSHBUTTON 2056
+#define QU_DRV_PUSHBUTTON_NOVENT 4578
#define QU_MID_CLEANVENT 4583
#define QU_SC27_RESTARTBETS 3370
#define QU_SC27_SHOWBET 3368
@@ -1119,6 +1121,7 @@ namespace Fullpipe {
#define ST_BTH_3 3361
#define ST_BTH_4 3359
#define ST_BTH_5 3357
+#define ST_DRV_SITNOVENT 1999
#define ST_DRV_VENT 1996
#define ST_MID_BROOM 2022
#define ST_MID_SPADE 3489
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp
index 407cf3820d..ba18c906fc 100644
--- a/engines/fullpipe/scenes/scene27.cpp
+++ b/engines/fullpipe/scenes/scene27.cpp
@@ -442,7 +442,19 @@ void sceneHandler27_batSetColors(int batn) {
}
void sceneHandler27_driverPushButton() {
- warning("STUB: sceneHandler27_driverPushButton()");
+ if (g_fp->getObjectState(sO_Driver) == g_fp->getObjectEnumState(sO_Driver, sO_WithSteering)) {
+ g_vars->scene27_driver->changeStatics2(ST_DRV_VENT);
+ chainQueue(QU_DRV_PUSHBUTTON, 1);
+
+ g_vars->scene27_var11 = 1;
+ } else {
+ g_vars->scene27_driver->changeStatics2(ST_DRV_SITNOVENT);
+
+
+ chainQueue(QU_DRV_PUSHBUTTON_NOVENT, 1);
+
+ g_vars->scene27_var11 = 1;
+ }
}
void sceneHandler27_maidSwitchback() {