Added Freya EWR sites to WW2 german factions

This commit is contained in:
Khopa
2020-11-07 03:21:53 +01:00
parent 3fd5e1bae7
commit e0153cfa6a
6 changed files with 48 additions and 4 deletions

View File

@@ -230,9 +230,9 @@ class QLiberationMap(QGraphicsView):
unit = db.unit_type_from_name(u.type)
if unit in UNITS_WITH_RADAR or unit in AAA_UNITS:
can_fire = True
if unit.detection_range > detection_range:
if unit.detection_range and unit.detection_range > detection_range:
detection_range = unit.detection_range
if unit.threat_range > threat_range:
if unit.threat_range and unit.threat_range > threat_range:
threat_range = unit.threat_range
if can_fire:
threat_pos = self._transform_point(Point(ground_object.position.x+threat_range,