aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-20 06:45:53 -0800
committerEugene Sandulenko2014-01-21 07:28:25 -0800
commit5137f609de84e6e85558ab52c45af3da78bb1e9e (patch)
treec5752d6c3ae45788431f9374d6c808c6c1ed61d4 /engines
parent7d49a97e8cd380158657b5e3012569fc1da608c6 (diff)
downloadscummvm-rg350-5137f609de84e6e85558ab52c45af3da78bb1e9e.tar.gz
scummvm-rg350-5137f609de84e6e85558ab52c45af3da78bb1e9e.tar.bz2
scummvm-rg350-5137f609de84e6e85558ab52c45af3da78bb1e9e.zip
FULLPIPE: Implement sceneHandler38_point()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/constants.h3
-rw-r--r--engines/fullpipe/scenes/scene38.cpp14
2 files changed, 16 insertions, 1 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 1de35560b4..a4aef5a5ea 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -1316,8 +1316,11 @@ namespace Fullpipe {
#define MV_GLV_LOOKMAN 2167
#define ST_DMS_3 3319
#define ST_DMS_4 3320
+#define ST_GLV_HAMMER 2156
#define ST_GLV_NOHAMMER 2159
#define ST_MLS_LEFT2 2291
+#define QU_GLV_TOSMALL 2208
+#define QU_GLV_TOSMALL_NOHMR 2209
#define QU_MLS_TURNR 2221
#define QU_SC38_SHOWBOTTLE 2199
#define QU_SC38_SHOWBOTTLE_ONTABLE 2838
diff --git a/engines/fullpipe/scenes/scene38.cpp b/engines/fullpipe/scenes/scene38.cpp
index f73aa7c782..13c5dea262 100644
--- a/engines/fullpipe/scenes/scene38.cpp
+++ b/engines/fullpipe/scenes/scene38.cpp
@@ -106,7 +106,19 @@ void sceneHandler38_propose() {
}
void sceneHandler38_point() {
- warning("STUB: sceneHandler38_point()");
+ if ((!g_vars->scene38_boss->_movement && ((g_vars->scene38_boss->_flags & 4) || !(g_vars->scene38_boss->_flags & 2)))
+ && g_vars->scene38_var05 > 0
+ && g_fp->_rnd->getRandomNumber(32767) < 32767) {
+ if (g_vars->scene38_boss->_statics->_staticsId == ST_GLV_HAMMER) {
+ chainQueue(QU_GLV_TOSMALL, 0);
+ g_vars->scene38_var05 = 0;
+ } else {
+ if (g_vars->scene38_boss->_statics->_staticsId == ST_GLV_NOHAMMER)
+ chainQueue(QU_GLV_TOSMALL_NOHMR, 0);
+
+ g_vars->scene38_var05 = 0;
+ }
+ }
}
void sceneHandler38_hammerKick() {