mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Update pydcs to support DCS 2.9.19 (#3524)
This commit is contained in:
@@ -285,7 +285,7 @@ class FlightGroupConfigurator:
|
||||
if (
|
||||
unit_callsign.name is None
|
||||
): # pydcs needs unit.callsign to be set for eastern callsigns
|
||||
unit.callsign = str(unit_callsign) # type: ignore
|
||||
unit.callsign = str(unit_callsign)
|
||||
else: # Use western callsign
|
||||
unit.callsign_dict = unit_callsign.pydcs_dict(
|
||||
country=self.flight.country
|
||||
|
||||
@@ -243,11 +243,7 @@ class FlightGroupSpawner:
|
||||
for i in range(self.flight.count):
|
||||
group.units[i].position = hpad.position
|
||||
group.units[i].heading = hpad.heading
|
||||
# pydcs has just `parking_id = None`, so mypy thinks str is invalid. Ought
|
||||
# to fix pydcs, but that's not the kind of change we want to pull into the
|
||||
# 6.1 branch, and frankly we should probably just improve pydcs's handling
|
||||
# of FARPs instead.
|
||||
group.units[i].parking_id = str(i + 1) # type: ignore
|
||||
group.units[i].parking_id = str(i + 1)
|
||||
return group
|
||||
|
||||
def dcs_start_type(self) -> DcsStartType:
|
||||
|
||||
Reference in New Issue
Block a user