Add: Setting to disable aircraft range limit (#15433)

This commit is contained in:
EmperorJake
2026-04-06 00:51:12 +10:00
committed by GitHub
parent 4707f78744
commit fed04d0a03
7 changed files with 37 additions and 1 deletions
+1
View File
@@ -455,6 +455,7 @@ TimerGameCalendar::Date Engine::GetLifeLengthInDays() const
*/
uint16_t Engine::GetRange() const
{
if (!_settings_game.vehicle.aircraft_range) return 0;
switch (this->type) {
case VEH_AIRCRAFT:
return GetEngineProperty(this->index, PROP_AIRCRAFT_RANGE, this->VehInfo<AircraftVehicleInfo>().max_range);