[Scummvm-git-logs] scummvm master -> fa171732e94362d10c9729ecdc604e4a5d28dc51

antoniou79 antoniou at cti.gr
Mon May 13 21:48:12 CEST 2019


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:
fa171732e9 BLADERUNNER: Fix broken MA06 elev when cutContent disabled


Commit: fa171732e94362d10c9729ecdc604e4a5d28dc51
    https://github.com/scummvm/scummvm/commit/fa171732e94362d10c9729ecdc604e4a5d28dc51
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2019-05-13T22:46:57+03:00

Commit Message:
BLADERUNNER: Fix broken MA06 elev when cutContent disabled

Changed paths:
    engines/bladerunner/script/scene/ma06.cpp


diff --git a/engines/bladerunner/script/scene/ma06.cpp b/engines/bladerunner/script/scene/ma06.cpp
index 7155bed..719dfd7 100644
--- a/engines/bladerunner/script/scene/ma06.cpp
+++ b/engines/bladerunner/script/scene/ma06.cpp
@@ -97,7 +97,7 @@ void SceneScriptMA06::PlayerWalkedIn() {
 	Loop_Actor_Walk_To_XYZ(kActorMcCoy, 40.0f, 1.35f, 0.0f, 0, false, false, false);
 	Actor_Face_Object(kActorMcCoy, "panel", true);
 	Delay(500);
-
+	bool normalElevatorBusiness = true;
 	if (_vm->_cutContent) {
 		//
 		// McCoy + Rachael meetings
@@ -105,6 +105,7 @@ void SceneScriptMA06::PlayerWalkedIn() {
 		if ((Game_Flag_Query(kFlagMA07toMA06) || Game_Flag_Query(kFlagMA01toMA06))
 		     && Actor_Query_Goal_Number(kActorRachael) == kGoalRachaelIsInsideMcCoysElevatorAct3
 		){
+			normalElevatorBusiness = false;
 			// Act 3 Deleted scene (can happen within the elevator or outside the building)
 			// Skip floor panel selection - force go to MCCOY 88F
 			Game_Flag_Reset(kFlagMA06toMA01);
@@ -143,6 +144,7 @@ void SceneScriptMA06::PlayerWalkedIn() {
 		} else if (Game_Flag_Query(kFlagMA02toMA06)
 			&& Actor_Query_Goal_Number(kActorRachael) == kGoalRachaelIsInsideMcCoysElevatorAct4
 		){
+			normalElevatorBusiness = false;
 			// Act 4 deleted scene case with Rachael
 			//
 			// TODO fix animations - Do an Optimization pass
@@ -174,29 +176,33 @@ void SceneScriptMA06::PlayerWalkedIn() {
 			Sound_Play(kSfxELDOORO2, 100, 50, 50, 50);
 		} else {
 			// normal elevator business
-			activateElevator();
-
-			if (isElevatorOnDifferentFloor()) {
-				Sound_Play(kSfxSPINUP1, 25, 0, 0, 50);
-				Delay(4000);
-			}
+			normalElevatorBusiness = true;
+		}
+	} // end of cut content
+	if (normalElevatorBusiness) {
+		// normal elevator business
+		activateElevator();
 
-			Game_Flag_Reset(kFlagMA01toMA06);
-			Game_Flag_Reset(kFlagMA02toMA06);
-			Game_Flag_Reset(kFlagMA07toMA06);
+		if (isElevatorOnDifferentFloor()) {
+			Sound_Play(kSfxSPINUP1, 25, 0, 0, 50);
+			Delay(4000);
+		}
 
-			if (Game_Flag_Query(kFlagMA06toMA01)) {
-				Set_Enter(kSetMA01, kSceneMA01);
-			} else if (Game_Flag_Query(kFlagMA06ToMA02)) {
-				Set_Enter(kSetMA02_MA04, kSceneMA02);
-			} else {
-				Set_Enter(kSetMA07, kSceneMA07);
-			}
+		Game_Flag_Reset(kFlagMA01toMA06);
+		Game_Flag_Reset(kFlagMA02toMA06);
+		Game_Flag_Reset(kFlagMA07toMA06);
 
-			Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kMA06LoopDoorClose, true);
-			Sound_Play(kSfxELDOORO2, 100, 50, 50, 50);
+		if (Game_Flag_Query(kFlagMA06toMA01)) {
+			Set_Enter(kSetMA01, kSceneMA01);
+		} else if (Game_Flag_Query(kFlagMA06ToMA02)) {
+			Set_Enter(kSetMA02_MA04, kSceneMA02);
+		} else {
+			Set_Enter(kSetMA07, kSceneMA07);
 		}
-	} // end of cut content
+
+		Scene_Loop_Start_Special(kSceneLoopModeChangeSet, kMA06LoopDoorClose, true);
+		Sound_Play(kSfxELDOORO2, 100, 50, 50, 50);
+	}
 }
 
 void SceneScriptMA06::PlayerWalkedOut() {





More information about the Scummvm-git-logs mailing list