mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +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.flightplan import HoldZoneGeometry
|
||||
from .config import ENABLE_EXPENSIVE_DEBUG_TOOLS
|
||||
from .joinzonesjs import JoinZonesJs
|
||||
from .leaflet import LeafletLatLon, LeafletPoly
|
||||
from .shapelyutil import ShapelyUtil
|
||||
|
||||
@ -67,7 +66,7 @@ class HoldZonesJs(QObject):
|
||||
@classmethod
|
||||
def for_flight(cls, flight: Flight, game: Game) -> HoldZonesJs:
|
||||
if not ENABLE_EXPENSIVE_DEBUG_TOOLS:
|
||||
return JoinZonesJs.empty()
|
||||
return HoldZonesJs.empty()
|
||||
target = flight.package.target
|
||||
home = flight.departure
|
||||
if flight.package.waypoints is None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user