mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Codechange: use scoped enums for timer enumerations, rename one enum
This commit is contained in:
@@ -61,7 +61,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 const IntervalTimer<TimerGameCalendar> _scheduled_monthly_timer = {{TimerGameCalendar::MONTH, TimerGameCalendar::Priority::NONE}, [](auto) {
|
||||
static const IntervalTimer<TimerGameCalendar> _scheduled_monthly_timer = {{TimerGameCalendar::Trigger::Month, TimerGameCalendar::Priority::None}, [](auto) {
|
||||
if (_scheduled_monthly_script.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user