Skip to content

Commit

Permalink
Bug in rangeCache caught by bgol
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 22, 2014
1 parent 8acfe9e commit 6def4fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ def genSystemsInRange(self, system, ly, includeSelf=False):
(candidate.posY - sysY) ** 2 +
(candidate.posZ - sysZ) ** 2
)
cachedSystems[candidate] = dist = math.sqrt(distSq)
if distSq <= lySq:
cachedSystems[candidate] = math.sqrt(distSq)

cache.probedLy = probedLy = ly

Expand Down

0 comments on commit 6def4fc

Please sign in to comment.