diff options
author | Eugene Sandulenko | 2016-09-08 09:49:58 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-08 11:31:55 +0200 |
commit | 573df106cd95f91730db676f5dfa46c632dfea92 (patch) | |
tree | a108e2b9fa6ba9a6f8a33fbbe257b5d18d3564ed /engines/fullpipe | |
parent | aa879ec3078a33f67efefa1c7b435802190a6a30 (diff) | |
download | scummvm-rg350-573df106cd95f91730db676f5dfa46c632dfea92.tar.gz scummvm-rg350-573df106cd95f91730db676f5dfa46c632dfea92.tar.bz2 scummvm-rg350-573df106cd95f91730db676f5dfa46c632dfea92.zip |
FULLPIPE: Fixed bat fall logic in scene27
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/scenes/scene27.cpp | 6 |
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); } |