mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix moving carriers.
This commit is contained in:
parent
2d0929cd69
commit
389f60786a
@ -134,8 +134,6 @@ class ControlPointJs(QObject):
|
||||
return self.theater.point_to_ll(self.control_point.target_position).as_list()
|
||||
|
||||
def destination_in_range(self, destination: Point) -> bool:
|
||||
from qt_ui.widgets.map.QLiberationMap import MAX_SHIP_DISTANCE
|
||||
|
||||
move_distance = meters(
|
||||
destination.distance_to_point(self.control_point.position)
|
||||
)
|
||||
@ -147,8 +145,6 @@ class ControlPointJs(QObject):
|
||||
|
||||
@Slot(list, result=str)
|
||||
def setDestination(self, destination: LeafletLatLon) -> str:
|
||||
from qt_ui.widgets.map.QLiberationMap import MAX_SHIP_DISTANCE
|
||||
|
||||
if not self.control_point.moveable:
|
||||
return f"{self.control_point} is not mobile"
|
||||
if not self.control_point.captured:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user