mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix threat range calculation
tThreat range calculation had a hidden bug which could possibly lead to wrong threat range calculation
This commit is contained in:
parent
795df1a93f
commit
808db05d23
@ -536,7 +536,7 @@ class SamGroundObject(IadsGroundObject):
|
||||
max_tel_range = meters(0)
|
||||
for launcher in launchers:
|
||||
if LAUNCHER_TRACKER_PAIRS[launcher] in live_trs:
|
||||
max_tel_range = max(max_tel_range, meters(unit_type.threat_range))
|
||||
max_tel_range = max(max_tel_range, meters(launcher.threat_range))
|
||||
if radar_only:
|
||||
return max(max_tel_range, max_telar_range)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user