mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix incorrect HoldZonesJs initialization.
This commit is contained in:
parent
9f7f391609
commit
51961294dd
@ -6,7 +6,6 @@ from game import Game
|
|||||||
from game.ato import Flight
|
from game.ato import Flight
|
||||||
from game.flightplan import HoldZoneGeometry
|
from game.flightplan import HoldZoneGeometry
|
||||||
from .config import ENABLE_EXPENSIVE_DEBUG_TOOLS
|
from .config import ENABLE_EXPENSIVE_DEBUG_TOOLS
|
||||||
from .joinzonesjs import JoinZonesJs
|
|
||||||
from .leaflet import LeafletLatLon, LeafletPoly
|
from .leaflet import LeafletLatLon, LeafletPoly
|
||||||
from .shapelyutil import ShapelyUtil
|
from .shapelyutil import ShapelyUtil
|
||||||
|
|
||||||
@ -67,7 +66,7 @@ class HoldZonesJs(QObject):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def for_flight(cls, flight: Flight, game: Game) -> HoldZonesJs:
|
def for_flight(cls, flight: Flight, game: Game) -> HoldZonesJs:
|
||||||
if not ENABLE_EXPENSIVE_DEBUG_TOOLS:
|
if not ENABLE_EXPENSIVE_DEBUG_TOOLS:
|
||||||
return JoinZonesJs.empty()
|
return HoldZonesJs.empty()
|
||||||
target = flight.package.target
|
target = flight.package.target
|
||||||
home = flight.departure
|
home = flight.departure
|
||||||
if flight.package.waypoints is None:
|
if flight.package.waypoints is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user