[Scummvm-cvs-logs] SF.net SVN: scummvm:[54926] scummvm/trunk/engines/hugo/route.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Thu Dec 16 00:52:25 CET 2010
Revision: 54926
http://scummvm.svn.sourceforge.net/scummvm/?rev=54926&view=rev
Author: strangerke
Date: 2010-12-15 23:52:24 +0000 (Wed, 15 Dec 2010)
Log Message:
-----------
HUGO: Fix pathfinding bug in 'bridge' screen (H3 Dos)
Modified Paths:
--------------
scummvm/trunk/engines/hugo/route.cpp
Modified: scummvm/trunk/engines/hugo/route.cpp
===================================================================
--- scummvm/trunk/engines/hugo/route.cpp 2010-12-15 23:35:21 UTC (rev 54925)
+++ scummvm/trunk/engines/hugo/route.cpp 2010-12-15 23:52:24 UTC (rev 54926)
@@ -275,9 +275,10 @@
Point *Route::newNode() {
debugC(1, kDebugRoute, "newNode");
+ _routeListIndex++;
if (_routeListIndex >= kMaxNodes) // Too many nodes
return 0; // Incomplete route - failure
- _routeListIndex++;
+
_route[_routeListIndex] = _route[_routeListIndex - 1]; // Initialize with previous node
return &_route[_routeListIndex];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list