From 7e41916be8357ee67ae3f307f272ef300a26076c Mon Sep 17 00:00:00 2001 From: Thanasis Antoniou Date: Tue, 23 Jul 2019 15:20:27 +0300 Subject: BLADERUNNER: fix code for targetStateMZ in PS11-PS13 (codacy) --- engines/bladerunner/script/scene/ps11.cpp | 4 ++-- engines/bladerunner/script/scene/ps12.cpp | 4 ++-- engines/bladerunner/script/scene/ps13.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/bladerunner/script') diff --git a/engines/bladerunner/script/scene/ps11.cpp b/engines/bladerunner/script/scene/ps11.cpp index 3d581e65b4..400be66189 100644 --- a/engines/bladerunner/script/scene/ps11.cpp +++ b/engines/bladerunner/script/scene/ps11.cpp @@ -681,11 +681,11 @@ void SceneScriptPS11::SceneLoaded() { Unclickable_Object("PARKMETR16"); if (!Query_System_Currently_Loading_Game()) { - bool targetStateMZ = true; #if BLADERUNNER_ORIGINAL_BUGS + bool targetStateMZ = true; #else // every maze target begins as NON-targetable - targetStateMZ = false; + bool targetStateMZ = false; #endif // BLADERUNNER_ORIGINAL_BUGS Item_Add_To_World(kItemPS11Target1, kModelAnimationFemaleTargetWithGunActive, kSetPS10_PS11_PS12_PS13, -450.0f, -7.5f, 335.0f, 50, 72, 36, targetStateMZ, false, false, true); Item_Add_To_World(kItemPS11Target2, kModelAnimationFemaleTargetWithGunActive, kSetPS10_PS11_PS12_PS13, -740.0f, 27.0f, -30.0f, 860, 72, 36, targetStateMZ, false, false, true); diff --git a/engines/bladerunner/script/scene/ps12.cpp b/engines/bladerunner/script/scene/ps12.cpp index c5fd721f10..a5189dcd2d 100644 --- a/engines/bladerunner/script/scene/ps12.cpp +++ b/engines/bladerunner/script/scene/ps12.cpp @@ -733,11 +733,11 @@ void SceneScriptPS12::SceneLoaded() { Unclickable_Object("PARKMETR16"); if (!Query_System_Currently_Loading_Game()) { - bool targetStateMZ = true; #if BLADERUNNER_ORIGINAL_BUGS + bool targetStateMZ = true; #else // every maze target begins as NON-targetable - targetStateMZ = false; + bool targetStateMZ = false; #endif // BLADERUNNER_ORIGINAL_BUGS Item_Add_To_World(kItemPS12Target1, kModelAnimationFemaleTargetWithGunActive, kSetPS10_PS11_PS12_PS13, -691.8f, -9.06f, 587.67f, 200, 72, 36, targetStateMZ, false, false, true); Item_Add_To_World(kItemPS12Target2, kModelAnimationMaleTargetWithShotgunActive, kSetPS10_PS11_PS12_PS13, -679.6f, -45.4f, 721.05f, 67, 72, 36, targetStateMZ, false, false, true); diff --git a/engines/bladerunner/script/scene/ps13.cpp b/engines/bladerunner/script/scene/ps13.cpp index 55c507ed71..afcc6808de 100644 --- a/engines/bladerunner/script/scene/ps13.cpp +++ b/engines/bladerunner/script/scene/ps13.cpp @@ -639,11 +639,11 @@ void SceneScriptPS13::SceneLoaded() { Unclickable_Object("PARKMETR16"); if (!Query_System_Currently_Loading_Game()) { - bool targetStateMZ = true; #if BLADERUNNER_ORIGINAL_BUGS + bool targetStateMZ = true; #else // every maze target begins as NON-targetable - targetStateMZ = false; + bool targetStateMZ = false; #endif // BLADERUNNER_ORIGINAL_BUGS Item_Add_To_World(kItemPS13Target1, kModelAnimationMaleTargetWithGunActive, kSetPS10_PS11_PS12_PS13, -372.0f, -9.0f, 1509.0f, 960, 72, 36, targetStateMZ, false, false, true); Item_Add_To_World(kItemPS13Target2, kModelAnimationMaleTargetWithGunActive, kSetPS10_PS11_PS12_PS13, 291.61f, -0.66f, 1610.3f, 823, 72, 36, targetStateMZ, false, false, true); -- cgit v1.2.3