Skip to content

Commit

Permalink
Fixed #193 run ignoring --ls-max
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Mar 2, 2015
1 parent 20c4bc4 commit 7a7c269
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ TradeDangerous, Copyright (C) Oliver "kfsone" Smith, July 2014

v6.12.4 Mar 02 2015
. (kfsone) Added 175 Systems
. (kfsone) Fixed #193 "run" was ignoring --ls-max

v6.12.3 Mar 01 2015
. (kfsone) Improved how we handle some edge cases with --from and --to,
Expand Down
2 changes: 1 addition & 1 deletion commands/run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ def run(results, cmdenv, tdb):
avoidPlaces = cmdenv.avoidPlaces
stopStations = cmdenv.destinations
goalSystem = cmdenv.goalSystem
maxLs = cmdenv.maxLsFromStar
maxLs = cmdenv.maxLs

startCr = cmdenv.credits - cmdenv.insurance

Expand Down
2 changes: 1 addition & 1 deletion tradecalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def getBestHops(self, routes, restrictTo=None):
maxJumpsPer = tdenv.maxJumpsPer
maxLyPer = tdenv.maxLyPer
maxPadSize = tdenv.padSize
maxLsFromStar = tdenv.maxLsFromStar or float('inf')
maxLsFromStar = tdenv.maxLs or float('inf')
reqBlackMarket = getattr(tdenv, 'blackMarket', False) or False
maxAge = getattr(tdenv, 'maxAge') or 0
credits = tdenv.credits - (getattr(tdenv, 'insurance', 0) or 0)
Expand Down

0 comments on commit 7a7c269

Please sign in to comment.