[Scummvm-cvs-logs] scummvm master -> 2b1c1734cb425813c0059dccb96122b46382e3cb
Strangerke
Strangerke at scummvm.org
Wed May 15 08:28:09 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2b1c1734cb HOPKINS: Fix erroneous check in pathfinding
Commit: 2b1c1734cb425813c0059dccb96122b46382e3cb
https://github.com/scummvm/scummvm/commit/2b1c1734cb425813c0059dccb96122b46382e3cb
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-05-14T23:26:36-07:00
Commit Message:
HOPKINS: Fix erroneous check in pathfinding
Changed paths:
engines/hopkins/lines.cpp
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 6ec48ce..e6d5e5c 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;
More information about the Scummvm-git-logs
mailing list