aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes/scene27.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/fullpipe/scenes/scene27.cpp')
-rw-r--r--engines/fullpipe/scenes/scene27.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp
index 9524464b3f..33f3c18757 100644
--- a/engines/fullpipe/scenes/scene27.cpp
+++ b/engines/fullpipe/scenes/scene27.cpp
@@ -288,6 +288,8 @@ void sceneHandler27_aimDude() {
}
void sceneHandler27_wipeDo() {
+ debugC(2, kDebugSceneLogic, "scene27: wipeDo");
+
for (uint i = 0; i < g_vars->scene27_bats.size(); i++) {
if (g_vars->scene27_bats[i]->currX < 800.0) {
g_vars->scene27_bats[i]->field_10 = atan2(520.0 - g_vars->scene27_bats[i]->currY, 800.0 - g_vars->scene27_bats[i]->currX);
@@ -309,8 +311,8 @@ bool sceneHandler27_batFallLogic(uint batn) {
g_vars->scene27_var07.push_back(bat);
- if (batn != g_vars->scene27_var07.size() - 1)
- g_vars->scene27_var07.remove_at(batn);
+ if (batn != g_vars->scene27_bats.size() - 1)
+ g_vars->scene27_bats.remove_at(batn);
} else if (!bat->ani->_movement) {
bat->ani->startAnim(MV_BTA_FALL, 0, -1);
}