aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-31 18:02:28 +0200
committerEugene Sandulenko2013-12-31 18:02:28 +0200
commitf643fd8fea0f62282b9a8cf784755d6d16f921a8 (patch)
tree9d540c5a17c6e4e857df633c6dd19203462e4405 /engines
parentb7bfa2281869df97ace11e551126b8e8ae179f78 (diff)
downloadscummvm-rg350-f643fd8fea0f62282b9a8cf784755d6d16f921a8.tar.gz
scummvm-rg350-f643fd8fea0f62282b9a8cf784755d6d16f921a8.tar.bz2
scummvm-rg350-f643fd8fea0f62282b9a8cf784755d6d16f921a8.zip
FULLPIPE: Implement sceneHandler14_endArcade()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/constants.h4
-rw-r--r--engines/fullpipe/scenes/scene14.cpp25
2 files changed, 27 insertions, 2 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index f44b39760d..d75d6b7af1 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -599,6 +599,10 @@ namespace Fullpipe {
#define MV_BAL14_SPIN 1247
#define MV_MAN14_KICK 1237
#define MV_MAN14_STEPFW 1240
+#define ST_GMA_SIT 1229
+#define QU_GMA_BLINK 1252
+#define QU_GMA_THROW 1255
+
#define QU_SC14_ENTERLIFT 1225
#define QU_SC14_EXITLIFT 1226
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp
index 7433a91457..385f926e30 100644
--- a/engines/fullpipe/scenes/scene14.cpp
+++ b/engines/fullpipe/scenes/scene14.cpp
@@ -32,7 +32,7 @@
#include "fullpipe/interaction.h"
#include "fullpipe/behavior.h"
-
+#include "fullpipe/input.h"
namespace Fullpipe {
@@ -168,7 +168,28 @@ void sceneHandler14_startArcade() {
}
void sceneHandler14_endArcade() {
- warning("STUB: sceneHandler14_endArcade()");
+ g_vars->scene14_var03 = 0;
+
+ setInputDisabled(0);
+
+ getGameLoaderInteractionController()->enableFlag24();
+ getCurrSceneSc2MotionController()->setEnabled();
+
+ BehaviorEntryInfo *beh = g_fp->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(g_vars->scene14_grandma, ST_GMA_SIT, QU_GMA_BLINK);
+ if (beh)
+ beh->_percent = 327;
+
+ beh = g_fp->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(g_vars->scene14_grandma, ST_GMA_SIT, QU_GMA_THROW);
+ if (beh)
+ beh->_percent = 0;
+
+ g_vars->scene14_var01 = 200;
+ g_vars->scene14_var02 = 200;
+
+ g_fp->_aniMan2 = g_fp->_aniMan;
+
+ g_vars->scene14_var07 = 300;
+ g_vars->scene14_var08 = 300;
}
void sceneHandler14_sub01() {