Update pydcs to support DCS 2.9.19 (#3524)

This commit is contained in:
zhexu14
2025-09-14 21:26:31 +10:00
committed by GitHub
parent 1a9fa8ad5a
commit a7488a5fdd
4 changed files with 4 additions and 8 deletions

View File

@@ -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

View File

@@ -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: