aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-21 22:25:05 +1100
committerPaul Gilbert2012-10-21 22:25:05 +1100
commit079591fad6aec4c37d5e5a761c8e581f9836991f (patch)
treedd147b0c07d71cca84d7d61c6004141a0bf52496 /engines
parent6716cddc768889c9a2a3af43567bd37a114d376c (diff)
downloadscummvm-rg350-079591fad6aec4c37d5e5a761c8e581f9836991f.tar.gz
scummvm-rg350-079591fad6aec4c37d5e5a761c8e581f9836991f.tar.bz2
scummvm-rg350-079591fad6aec4c37d5e5a761c8e581f9836991f.zip
HOPKINS: Bugfix for super_parcours array usage in PARCOURS2 method
Diffstat (limited to 'engines')
-rw-r--r--engines/hopkins/lines.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index e307a0ee2f..67ce626e0e 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -2439,8 +2439,8 @@ LABEL_200:
}
v57 = v112;
if (PARC_PERS(
- _vm->_globals.Param[v112 + 4192 / 2],
- _vm->_globals.Param[v112 + 4194 / 2],
+ _vm->_globals.super_parcours[v112 - 4],
+ _vm->_globals.super_parcours[v112 - 3],
v123,
v122,
-1,
@@ -2639,7 +2639,8 @@ int LinesManager::PARC_PERS(int a1, int a2, int a3, int a4, int a5, int a6, int
v142 = -1;
v140 = -1;
v138 = -1;
- while (1) {
+
+ for (;;) {
v111 = v7;
v109 = v90;
if (a3 >= v7 - 2 && a3 <= v7 + 2 && a4 >= v90 - 2 && a4 <= v90 + 2) {