From 31bc5eb2aa33c52ec4e874357ce5756656e93b5f Mon Sep 17 00:00:00 2001 From: Benjamin Fischer Date: Fri, 18 Mar 2022 08:07:41 +0100 Subject: [PATCH] Fix SAM repair. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2091. --- qt_ui/windows/groundobject/QGroundObjectMenu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt_ui/windows/groundobject/QGroundObjectMenu.py b/qt_ui/windows/groundobject/QGroundObjectMenu.py index 482b8a4e..7bb48b5a 100644 --- a/qt_ui/windows/groundobject/QGroundObjectMenu.py +++ b/qt_ui/windows/groundobject/QGroundObjectMenu.py @@ -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))