mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add types for distance and speed.
Not converting all at once so I can prove the concept. After that we'll want to cover all the cases where an int distance or speed is a part of the save game (I've done one of them here with `Flight.alt`) so further cleanups don't break save compat. https://github.com/Khopa/dcs_liberation/issues/558
This commit is contained in:
@@ -441,7 +441,7 @@ class QLiberationMap(QGraphicsView):
|
||||
waypoint: FlightWaypoint, position: Tuple[int, int],
|
||||
flight_plan: FlightPlan) -> None:
|
||||
|
||||
altitude = meter_to_feet(waypoint.alt)
|
||||
altitude = int(waypoint.alt.feet)
|
||||
altitude_type = "AGL" if waypoint.alt_type == "RADIO" else "MSL"
|
||||
|
||||
prefix = "TOT"
|
||||
|
||||
Reference in New Issue
Block a user