diff options
author | Thanasis Antoniou | 2019-07-23 15:20:27 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-07-23 15:20:27 +0300 |
commit | 7e41916be8357ee67ae3f307f272ef300a26076c (patch) | |
tree | 9557d5f37a7582b9dae2bf3f98661b430222a705 /engines | |
parent | b7d1099658c8324533cfa4b225340ba539d01b61 (diff) | |
download | scummvm-rg350-7e41916be8357ee67ae3f307f272ef300a26076c.tar.gz scummvm-rg350-7e41916be8357ee67ae3f307f272ef300a26076c.tar.bz2 scummvm-rg350-7e41916be8357ee67ae3f307f272ef300a26076c.zip |
BLADERUNNER: fix code for targetStateMZ in PS11-PS13 (codacy)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/bladerunner/script/scene/ps11.cpp | 4 | ||||
-rw-r--r-- | engines/bladerunner/script/scene/ps12.cpp | 4 | ||||
-rw-r--r-- | engines/bladerunner/script/scene/ps13.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
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); |