aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-05 00:12:09 +0200
committerEugene Sandulenko2014-01-05 00:53:31 +0200
commitb0ddd171cb69fde214897c078a1d809570355da8 (patch)
treed10978e4d9d4ddc9e9c769f689cc49a9abd21e89
parent7cb50d7066ebebde5f9682f384cedd87462f6ccf (diff)
downloadscummvm-rg350-b0ddd171cb69fde214897c078a1d809570355da8.tar.gz
scummvm-rg350-b0ddd171cb69fde214897c078a1d809570355da8.tar.bz2
scummvm-rg350-b0ddd171cb69fde214897c078a1d809570355da8.zip
FULLPIPE: Implement scene23_setGiraffeState()
-rw-r--r--engines/fullpipe/constants.h2
-rw-r--r--engines/fullpipe/scenes/scene23.cpp7
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 7d74a1a61e..4a285e77ef 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -791,6 +791,8 @@ namespace Fullpipe {
#define PIC_SC23_BTN3 1731
#define PIC_SC23_BTN4 1732
#define PIC_SC23_LADDERU 3411
+#define QU_GRFU_TURN_UD 1664
+#define QU_GRFU_TURN_UL 1662
#define ST_CND_5 1713
#define ST_GRFG_BALD 1675
#define ST_GRFG_EMPTY 1674
diff --git a/engines/fullpipe/scenes/scene23.cpp b/engines/fullpipe/scenes/scene23.cpp
index 6d7d074f72..f381e1db39 100644
--- a/engines/fullpipe/scenes/scene23.cpp
+++ b/engines/fullpipe/scenes/scene23.cpp
@@ -134,6 +134,13 @@ void scene23_initScene(Scene *sc) {
g_fp->_currentScene = oldsc;
}
+void scene23_setGiraffeState() {
+ if (g_fp->getObjectState(sO_UpperHatch_23) == g_fp->getObjectEnumState(sO_UpperHatch_23, sO_Opened)) {
+ g_fp->_behaviorManager->setBehaviorEnabled(g_vars->scene23_giraffeTop, ST_GRFU_UP, QU_GRFU_TURN_UL, 0);
+ g_fp->_behaviorManager->setBehaviorEnabled(g_vars->scene23_giraffeTop, ST_GRFU_UP, QU_GRFU_TURN_UD, 0);
+ }
+}
+
int scene23_updateCursor() {
g_fp->updateCursorCommon();