From d7e04bd04911a4752ea9a322865abb70c7e74312 Mon Sep 17 00:00:00 2001 From: matzman Date: Fri, 5 Feb 2016 17:47:31 +0100 Subject: [PATCH] Made collectibles' visual range setting independent from map resolution --- widgets/map/globalmapwidget.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widgets/map/globalmapwidget.py b/widgets/map/globalmapwidget.py index 0924c6e..4b66f9a 100644 --- a/widgets/map/globalmapwidget.py +++ b/widgets/map/globalmapwidget.py @@ -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: