Clean up remaining Flight.from_cp users.

The preferred API for this has been `Flight.departure` for a while.
This commit is contained in:
Dan Albert
2023-06-29 20:24:24 -07:00
committed by Raffson
parent 5e858731d2
commit f89ac52bf3
9 changed files with 8 additions and 12 deletions

View File

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