Skip to content

Commit

Permalink
Made collectibles' visual range setting independent from map resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
matzman666 committed Feb 5, 2016
1 parent 04d3666 commit d7e04bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions widgets/map/globalmapwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,11 @@ def updateCollectableVisibility(self, playAudibleAlerts=True):
collectableVRange = int(self._app.settings.value('globalmapwidget/collectable_vrange_' + catKey, 100))
collectableARange = int(self._app.settings.value('globalmapwidget/collectable_arange_' + catKey, 50))

# Multiplying with the map coordinate's scale factor will make the distance
# independent from the map resolution
collectableVRange = self.mapCoords._ax * collectableVRange * 100
collectableARange = self.mapCoords._ax * collectableARange * 100

for k, marker in self.collectableLocationMarkers[catKey].items():
if marker.collected:
if showAlwaysCollected:
Expand Down

0 comments on commit d7e04bd

Please sign in to comment.