aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThanasis Antoniou2019-09-15 10:04:25 +0300
committerThanasis Antoniou2019-09-15 10:06:23 +0300
commit29aa2e163b109a510c536293c6b0d9df3e02cfa9 (patch)
tree61977238f99c24b89cf98a63639fa5182463a694 /engines
parentb17ca955691c61a814e8cdc623e450e58f3bed4c (diff)
downloadscummvm-rg350-29aa2e163b109a510c536293c6b0d9df3e02cfa9.tar.gz
scummvm-rg350-29aa2e163b109a510c536293c6b0d9df3e02cfa9.tar.bz2
scummvm-rg350-29aa2e163b109a510c536293c6b0d9df3e02cfa9.zip
BLADERUNNER: Remove redundant initializations
Redundant setting of actors health (Init_Actor_Health) and a duplicate _crimesDatabase init
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/bladerunner.cpp2
-rw-r--r--engines/bladerunner/script/init_script.cpp26
2 files changed, 7 insertions, 21 deletions
diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp
index d763f7cadb..b0d322f324 100644
--- a/engines/bladerunner/bladerunner.cpp
+++ b/engines/bladerunner/bladerunner.cpp
@@ -134,8 +134,6 @@ BladeRunnerEngine::BladeRunnerEngine(OSystem *syst, const ADGameDescription *des
_walkSoundVolume = 0;
_walkSoundPan = 0;
- _crimesDatabase = nullptr;
-
_language = desc->language;
switch (desc->language) {
case Common::EN_ANY:
diff --git a/engines/bladerunner/script/init_script.cpp b/engines/bladerunner/script/init_script.cpp
index 2ba4b96e60..a15bb768f1 100644
--- a/engines/bladerunner/script/init_script.cpp
+++ b/engines/bladerunner/script/init_script.cpp
@@ -2124,7 +2124,7 @@ void InitScript::Init_World_Waypoints() {
World_Waypoint_Set(433, kSetUG09, 115.0f, 156.0f, -310.0f);
World_Waypoint_Set(434, kSetUG09, -57.0f, 156.0f, -306.0f);
World_Waypoint_Set(435, kSetUG09, -121.0f, 156.0f, -426.0f);
- World_Waypoint_Set(436, kSetUG18, -274.74f, 0.0f, 464.75f); // A bug? redundant? 436 is also set as a kSetUG18 waypoin in Sadik's AI script. Different co-ordinates
+ World_Waypoint_Set(436, kSetUG18, -274.74f, 0.0f, 464.75f); // A bug? redundant? 436 is also set as a kSetUG18 waypoint in Sadik's AI script. Different co-ordinates
World_Waypoint_Set(437, kSetHF05, 271.97f, 40.63f, 18.4f);
World_Waypoint_Set(438, kSetHF05, 203.97f, 40.63f, 18.4f);
World_Waypoint_Set(439, kSetNR05_NR08, -1273.27f, 0.32f, 126.92f);
@@ -2920,14 +2920,7 @@ void InitScript::Init_Actor_Stability() {
void InitScript::Init_Actor_Health() {
Actor_Set_Health(kActorMcCoy, 50, 50);
- Actor_Set_Health(kActorSteele, 50, 50);
- Actor_Set_Health(kActorGordo, 50, 50);
- Actor_Set_Health(kActorDektora, 50, 50);
Actor_Set_Health(kActorGuzza, 50, 50);
- Actor_Set_Health(kActorClovis, 50, 50);
- Actor_Set_Health(kActorLucy, 50, 50);
- Actor_Set_Health(kActorIzo, 50, 50);
- Actor_Set_Health(kActorSadik, 50, 50);
Actor_Set_Health(kActorCrazylegs, 50, 50);
Actor_Set_Health(kActorLuther, 50, 50);
Actor_Set_Health(kActorGrigorian, 50, 50);
@@ -2938,12 +2931,9 @@ void InitScript::Init_Actor_Health() {
Actor_Set_Health(kActorInsectDealer, 50, 50);
Actor_Set_Health(kActorTyrellGuard, 50, 50);
Actor_Set_Health(kActorEarlyQ, 50, 50);
- Actor_Set_Health(kActorZuben, 50, 50);
Actor_Set_Health(kActorHasan, 50, 50);
Actor_Set_Health(kActorMarcus, 50, 50);
Actor_Set_Health(kActorMia, 50, 50);
- Actor_Set_Health(kActorOfficerLeary, 50, 50);
- Actor_Set_Health(kActorOfficerGrayford, 50, 50);
Actor_Set_Health(kActorHanoi, 50, 50);
Actor_Set_Health(kActorBaker, 50, 50);
Actor_Set_Health(kActorDeskClerk, 50, 50);
@@ -2984,18 +2974,16 @@ void InitScript::Init_Actor_Health() {
Actor_Set_Health(kActorGenwalkerB, 50, 50);
Actor_Set_Health(kActorGenwalkerC, 50, 50);
- // A bug? The health for some actors is set again here
- // with different values except for Izo and kActorOfficerGrayford
- // rendering the initial setting redundant.
- // The health of all who can be Replicants will again be set further below (including Izo)
- Actor_Set_Health(kActorZuben, 80, 80);
+ // The health of all who can be Replicants will again be set further below
+ // (excluding LutherLance)
+ Actor_Set_Health(kActorSteele, 60, 60);
Actor_Set_Health(kActorGordo, 40, 40);
+ Actor_Set_Health(kActorDektora, 60, 60);
+ Actor_Set_Health(kActorClovis, 90, 90);
Actor_Set_Health(kActorLucy, 20, 20);
Actor_Set_Health(kActorIzo, 50, 50);
- Actor_Set_Health(kActorDektora, 60, 60);
- Actor_Set_Health(kActorSteele, 60, 60);
Actor_Set_Health(kActorSadik, 60, 60);
- Actor_Set_Health(kActorClovis, 90, 90);
+ Actor_Set_Health(kActorZuben, 80, 80);
Actor_Set_Health(kActorOfficerLeary, 40, 40);
Actor_Set_Health(kActorOfficerGrayford, 50, 50);