mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Remove faulty beacon in migrator
This commit is contained in:
parent
91fb0cea58
commit
02ae5d9ad7
@ -74,6 +74,7 @@ class Migrator:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def _update_control_points(self) -> None:
|
def _update_control_points(self) -> None:
|
||||||
|
is_sinai = self.game.theater.terrain.name == "SinaiMap"
|
||||||
for cp in self.game.theater.controlpoints:
|
for cp in self.game.theater.controlpoints:
|
||||||
is_carrier = cp.is_carrier
|
is_carrier = cp.is_carrier
|
||||||
is_lha = cp.is_lha
|
is_lha = cp.is_lha
|
||||||
@ -92,6 +93,13 @@ class Migrator:
|
|||||||
try_set_attr(cp, "ground_spawns_roadbase", [])
|
try_set_attr(cp, "ground_spawns_roadbase", [])
|
||||||
try_set_attr(cp, "helipads_quad", [])
|
try_set_attr(cp, "helipads_quad", [])
|
||||||
try_set_attr(cp, "helipads_invisible", [])
|
try_set_attr(cp, "helipads_invisible", [])
|
||||||
|
if (
|
||||||
|
cp.dcs_airport and is_sinai and cp.dcs_airport.id == 20
|
||||||
|
): # fix for Hatzor
|
||||||
|
beacons = cp.dcs_airport.beacons
|
||||||
|
faulty_beacon = [x for x in beacons if x.id == "airfield20_0"]
|
||||||
|
if faulty_beacon:
|
||||||
|
beacons.remove([x for x in beacons if x.id == "airfield20_0"][0])
|
||||||
|
|
||||||
def _update_flight_plan(self, f: Flight) -> None:
|
def _update_flight_plan(self, f: Flight) -> None:
|
||||||
layout = f.flight_plan.layout
|
layout = f.flight_plan.layout
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user