mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Add: Setting to disable aircraft range limit (#15433)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user