[Scummvm-git-logs] scummvm master -> 573df106cd95f91730db676f5dfa46c632dfea92

sev- sev at scummvm.org
Thu Sep 8 11:31:57 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
573df106cd FULLPIPE: Fixed bat fall logic in scene27


Commit: 573df106cd95f91730db676f5dfa46c632dfea92
    https://github.com/scummvm/scummvm/commit/573df106cd95f91730db676f5dfa46c632dfea92
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-08T11:31:55+02:00

Commit Message:
FULLPIPE: Fixed bat fall logic in scene27

Changed paths:
    engines/fullpipe/scenes/scene27.cpp



diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp
index 9524464..33f3c18 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);
 	}





More information about the Scummvm-git-logs mailing list