-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
As "map.getDistanceBetween(current, neighbor)" gives a distance which is always
positive,
"neighborDistanceFromStart" is always greater than
"current.getDistanceFromStart()"..
Thus
"else if(neighborDistanceFromStart < current.getDistanceFromStart())
{neighborIsBetter = true;}"
is never satisfied.
Possible solution:
Change Else if condition to
"else if(neighborDistanceFromStart < neighbor.getDistanceFromStart())
{neighborIsBetter = true;}"
Original issue reported on code.google.com by itsprajw...@gmail.com on 13 Sep 2013 at 11:49
Reactions are currently unavailable