diff options
author | Eugene Sandulenko | 2014-02-07 20:34:23 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-02-08 00:21:17 +0200 |
commit | b39086861e2303c99c4c62a711993bcbf700b25c (patch) | |
tree | 5432604c961b08f11828fb72589d9b534614d49a /engines/fullpipe/scenes/scene27.cpp | |
parent | 08738ac697309bca598d0b1b79576afc47013774 (diff) | |
download | scummvm-rg350-b39086861e2303c99c4c62a711993bcbf700b25c.tar.gz scummvm-rg350-b39086861e2303c99c4c62a711993bcbf700b25c.tar.bz2 scummvm-rg350-b39086861e2303c99c4c62a711993bcbf700b25c.zip |
FULLPIPE: Implement sceneHandler27_driverPushButton()
Diffstat (limited to 'engines/fullpipe/scenes/scene27.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene27.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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() { |