Skip to content

Commit

Permalink
Fix really slow nav
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Feb 12, 2015
1 parent 0b7d0f5 commit 970e7c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,7 @@ def getRoute(self, origin, dest, maxJumpLy, avoiding=[], stationInterval=0):
try:
(prevSys, prevDist) = distances[nSys]
if prevDist <= newDist:
if prevDist < newDist or prevSys.stations:
continue
continue
except KeyError:
pass
if stationInterval and stnDist >= stationInterval and not curSys.stations:
Expand Down

0 comments on commit 970e7c2

Please sign in to comment.