mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 01:12:39 +01:00
Codechange: Declare all IntervalTimers const, which can be const.
This commit is contained in:
@@ -57,7 +57,7 @@ static uint _script_current_depth; ///< Depth of scripts running (used to abort
|
||||
static std::string _scheduled_monthly_script; ///< Script scheduled to execute by the 'schedule' console command (empty if no script is scheduled).
|
||||
|
||||
/** Timer that runs every month of game time for the 'schedule' console command. */
|
||||
static IntervalTimer<TimerGameCalendar> _scheduled_monthly_timer = {{TimerGameCalendar::MONTH, TimerGameCalendar::Priority::NONE}, [](auto) {
|
||||
static const IntervalTimer<TimerGameCalendar> _scheduled_monthly_timer = {{TimerGameCalendar::MONTH, TimerGameCalendar::Priority::NONE}, [](auto) {
|
||||
if (_scheduled_monthly_script.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user