mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix SAM repair.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2091.
This commit is contained in:
parent
be67d6dbc6
commit
31bc5eb2aa
@ -190,7 +190,7 @@ class QGroundObjectMenu(QDialog):
|
||||
# Remove destroyed units in the vicinity
|
||||
destroyed_units = self.game.get_destroyed_units()
|
||||
for d in destroyed_units:
|
||||
p = Point(d["x"], d["z"])
|
||||
p = Point(d["x"], d["z"], self.game.theater.terrain)
|
||||
if p.distance_to_point(unit.position) < 15:
|
||||
destroyed_units.remove(d)
|
||||
logging.info("Removed destroyed units " + str(d))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user