mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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()
|
return self.theater.point_to_ll(self.control_point.target_position).as_list()
|
||||||
|
|
||||||
def destination_in_range(self, destination: Point) -> bool:
|
def destination_in_range(self, destination: Point) -> bool:
|
||||||
from qt_ui.widgets.map.QLiberationMap import MAX_SHIP_DISTANCE
|
|
||||||
|
|
||||||
move_distance = meters(
|
move_distance = meters(
|
||||||
destination.distance_to_point(self.control_point.position)
|
destination.distance_to_point(self.control_point.position)
|
||||||
)
|
)
|
||||||
@ -147,8 +145,6 @@ class ControlPointJs(QObject):
|
|||||||
|
|
||||||
@Slot(list, result=str)
|
@Slot(list, result=str)
|
||||||
def setDestination(self, destination: LeafletLatLon) -> str:
|
def setDestination(self, destination: LeafletLatLon) -> str:
|
||||||
from qt_ui.widgets.map.QLiberationMap import MAX_SHIP_DISTANCE
|
|
||||||
|
|
||||||
if not self.control_point.moveable:
|
if not self.control_point.moveable:
|
||||||
return f"{self.control_point} is not mobile"
|
return f"{self.control_point} is not mobile"
|
||||||
if not self.control_point.captured:
|
if not self.control_point.captured:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user