Skip to content

Commit

Permalink
correct cursor calculation for far side of world
Browse files Browse the repository at this point in the history
  • Loading branch information
seandepagnier committed Jun 3, 2016
1 parent 0724ae2 commit 264605a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RouteMap.cpp
Expand Up @@ -2541,7 +2541,7 @@ Position *RouteMap::ClosestPosition(double lat, double lon, double *dist)
do {
it--;
double dist;
Position *pos = (*it)->ClosestPosition(lat, lon, &dist);
Position *pos = (*it)->ClosestPosition(p.lat, p.lon, &dist);

if(pos && dist < mindist) {
minpos = pos;
Expand Down

0 comments on commit 264605a

Please sign in to comment.