mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 04:04:09 +01:00
Codechange: Declare all IntervalTimers const, which can be const.
This commit is contained in:
@@ -252,7 +252,7 @@ void ShowEndGameChart()
|
||||
new EndGameWindow(_endgame_desc);
|
||||
}
|
||||
|
||||
static IntervalTimer<TimerGameCalendar> _check_end_game({TimerGameCalendar::YEAR, TimerGameCalendar::Priority::NONE}, [](auto)
|
||||
static const IntervalTimer<TimerGameCalendar> _check_end_game({TimerGameCalendar::YEAR, TimerGameCalendar::Priority::NONE}, [](auto)
|
||||
{
|
||||
/* 0 = never */
|
||||
if (_settings_game.game_creation.ending_year == 0) return;
|
||||
|
||||
Reference in New Issue
Block a user