aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2013-05-15 08:26:36 +0200
committerStrangerke2013-05-15 08:26:36 +0200
commit2b1c1734cb425813c0059dccb96122b46382e3cb (patch)
tree49235f1846065c19c14f1613868169fdd68b163d /engines
parent32c3de61e1614e61547a099e954f23093131f0e0 (diff)
downloadscummvm-rg350-2b1c1734cb425813c0059dccb96122b46382e3cb.tar.gz
scummvm-rg350-2b1c1734cb425813c0059dccb96122b46382e3cb.tar.bz2
scummvm-rg350-2b1c1734cb425813c0059dccb96122b46382e3cb.zip
HOPKINS: Fix erroneous check in pathfinding
Diffstat (limited to 'engines')
-rw-r--r--engines/hopkins/lines.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 6ec48ce9d2..e6d5e5ca7f 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -1988,8 +1988,8 @@ int LinesManager::characterRoute(int fromX, int fromY, int destX, int destY, int
_newRouteIdx = curRouteIdx;
return 2;
}
- // CHECKME: Checking essai0[0]._x might make more sense here?
- if (_testRoute1[0]._x != -1 && foundLineIdx > collLineIdxRoute0 && collLineIdxRoute1 >= collLineIdxRoute0 && collLineIdxRoute2 >= collLineIdxRoute0 && endLineIdx <= collLineIdxRoute0) {
+
+ if (_testRoute0[0]._x != -1 && foundLineIdx > collLineIdxRoute0 && collLineIdxRoute1 >= collLineIdxRoute0 && collLineIdxRoute2 >= collLineIdxRoute0 && endLineIdx <= collLineIdxRoute0) {
_newLineIdx = collLineIdxRoute0;
_newLineDataIdx = collDataIdxRoute0;
int i = 0;