aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-13 22:16:24 +0200
committerEugene Sandulenko2014-01-13 22:16:24 +0200
commit3d1e84ac6e58d18064e125d18432b587f955f514 (patch)
treecb7bdf516b625052a92f13a9b6c0ae6c9b27e9b3 /engines
parent4366409f4cb471573bb10ae5cf6ff2cfb5608b77 (diff)
downloadscummvm-rg350-3d1e84ac6e58d18064e125d18432b587f955f514.tar.gz
scummvm-rg350-3d1e84ac6e58d18064e125d18432b587f955f514.tar.bz2
scummvm-rg350-3d1e84ac6e58d18064e125d18432b587f955f514.zip
FULLPIPE: Implement sceneHandler34_genFlies()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scenes/scene34.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/fullpipe/scenes/scene34.cpp b/engines/fullpipe/scenes/scene34.cpp
index 51da888c40..9026c81884 100644
--- a/engines/fullpipe/scenes/scene34.cpp
+++ b/engines/fullpipe/scenes/scene34.cpp
@@ -161,8 +161,14 @@ void sceneHandler34_climb() {
g_vars->scene34_var05 = 1;
}
-void sceneHandler34_sub04() {
- warning("STUB: sceneHandler34_sub04()");
+void sceneHandler34_genFlies() {
+ g_fp->_floaters->genFlies(g_fp->_currentScene, 1072, -50, 100, 4);
+
+ g_fp->_floaters->_array2[g_fp->_floaters->_array2.size() - 1]->countdown = 1;
+ g_fp->_floaters->_array2[g_fp->_floaters->_array2.size() - 1]->val6 = 1072;
+ g_fp->_floaters->_array2[g_fp->_floaters->_array2.size() - 1]->val7 = -50;
+
+ g_vars->scene34_var08 = g_fp->_rnd->getRandomNumber(500) + 500;
}
void sceneHandler34_fromCactus(ExCommand *cmd) {
@@ -460,7 +466,7 @@ int sceneHandler34(ExCommand *cmd) {
--g_vars->scene34_var08;
if (!g_vars->scene34_var08)
- sceneHandler34_sub04();
+ sceneHandler34_genFlies();
g_fp->_floaters->update();