mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Clean up remaining Flight.from_cp users.
The preferred API for this has been `Flight.departure` for a while.
This commit is contained in:
@@ -51,7 +51,7 @@ class FlightDelegate(TwoColumnRowDelegate):
|
||||
clients = self.num_clients(index)
|
||||
return f"Player Slots: {clients}" if clients else ""
|
||||
elif (row, column) == (1, 0):
|
||||
origin = flight.from_cp.name
|
||||
origin = flight.departure.name
|
||||
if flight.arrival != flight.departure:
|
||||
return f"From {origin} to {flight.arrival.name}"
|
||||
return f"From {origin}"
|
||||
|
||||
Reference in New Issue
Block a user