aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2018-03-28 23:49:16 +0200
committerEugene Sandulenko2018-03-29 00:08:34 +0200
commitbfa00a02b1f1e286cc726054075e8426461df0a6 (patch)
treeacae2aecfcaa781fbc40ecdcf73c52dac84177e3 /engines
parent0d241c200ba6125b5cee1b9444a126e1ee3dca3e (diff)
downloadscummvm-rg350-bfa00a02b1f1e286cc726054075e8426461df0a6.tar.gz
scummvm-rg350-bfa00a02b1f1e286cc726054075e8426461df0a6.tar.bz2
scummvm-rg350-bfa00a02b1f1e286cc726054075e8426461df0a6.zip
BLADERUNNER: Fix incorrect loop end check
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/script/ai/generic_walker_b.cpp2
-rw-r--r--engines/bladerunner/script/ai/generic_walker_c.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/script/ai/generic_walker_b.cpp b/engines/bladerunner/script/ai/generic_walker_b.cpp
index a2ff58113f..cfa9e0470e 100644
--- a/engines/bladerunner/script/ai/generic_walker_b.cpp
+++ b/engines/bladerunner/script/ai/generic_walker_b.cpp
@@ -435,7 +435,7 @@ bool AIScriptGenericWalkerB::preparePath() {
int waypointEnd = 0;
do {
waypointStart = Random_Query(167, 171);
- } while (waypointEnd == 168 || waypointEnd == 169);
+ } while (waypointStart == 168 || waypointStart == 169);
do {
waypointEnd = Random_Query(167, 171);
} while (waypointEnd == waypointStart || waypointEnd == 168 || waypointEnd == 169);
diff --git a/engines/bladerunner/script/ai/generic_walker_c.cpp b/engines/bladerunner/script/ai/generic_walker_c.cpp
index f317d5ad49..6979be8e1f 100644
--- a/engines/bladerunner/script/ai/generic_walker_c.cpp
+++ b/engines/bladerunner/script/ai/generic_walker_c.cpp
@@ -438,7 +438,7 @@ bool AIScriptGenericWalkerC::preparePath() {
int waypointEnd = 0;
do {
waypointStart = Random_Query(167, 171);
- } while (waypointEnd == 168 || waypointEnd == 169);
+ } while (waypointStart == 168 || waypointStart == 169);
do {
waypointEnd = Random_Query(167, 171);
} while (waypointEnd == waypointStart || waypointEnd == 168 || waypointEnd == 169);