mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Log a warning for unknown max ranges.
This commit is contained in:
parent
0a57bb5029
commit
4c0a97e62f
@ -241,6 +241,10 @@ class AircraftType(UnitType[Type[FlyingType]]):
|
||||
mission_range = (
|
||||
nautical_miles(50) if aircraft.helicopter else nautical_miles(150)
|
||||
)
|
||||
logging.warning(
|
||||
f"{aircraft.id} does not specify a max_range. Defaulting to "
|
||||
f"{mission_range.nautical_miles}NM"
|
||||
)
|
||||
|
||||
try:
|
||||
introduction = data["introduced"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user