1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 10:22:39 +01:00

Codechange: Declare all IntervalTimers const, which can be const.

This commit is contained in:
frosch
2025-04-27 17:09:01 +02:00
committed by frosch
parent 61cec33be2
commit 0d5b3ebd7f
37 changed files with 60 additions and 60 deletions

View File

@@ -802,7 +802,7 @@ struct TimetableWindow : Window {
/**
* In real-time mode, the timetable GUI shows relative times and needs to be redrawn every second.
*/
IntervalTimer<TimerGameTick> redraw_interval = { { TimerGameTick::Priority::NONE, Ticks::TICKS_PER_SECOND }, [this](auto) {
const IntervalTimer<TimerGameTick> redraw_interval = { { TimerGameTick::Priority::NONE, Ticks::TICKS_PER_SECOND }, [this](auto) {
if (_settings_client.gui.timetable_mode == TimetableMode::Seconds) {
this->SetDirty();
}