* Returns the vehicle's (not model's!) life length in days. * @return the life length */
| 440 | * @return the life length |
| 441 | */ |
| 442 | TimerGameCalendar::Date Engine::GetLifeLengthInDays() const |
| 443 | { |
| 444 | /* Assume leap years; this gives the player a bit more than the given amount of years, but never less. */ |
| 445 | return TimerGameCalendar::Date{(this->info.lifelength + _settings_game.vehicle.extend_vehicle_life).base() * CalendarTime::DAYS_IN_LEAP_YEAR}; |
| 446 | } |
| 447 | |
| 448 | /** |
| 449 | * Get the range of an aircraft type. |
no test coverage detected