1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 01:12:39 +01:00

Codechange: Add constant for common blink interval.

This commit is contained in:
Peter Nelson
2025-06-02 19:13:29 +01:00
committed by Peter Nelson
parent ecafbf884e
commit 10841ea3fd
3 changed files with 5 additions and 2 deletions

View File

@@ -3073,7 +3073,7 @@ static const IntervalTimer<TimerWindow> window_interval(std::chrono::millisecond
});
/** Blink the window highlight colour constantly. */
static const IntervalTimer<TimerWindow> highlight_interval(std::chrono::milliseconds(450), [](auto) {
static const IntervalTimer<TimerWindow> highlight_interval(TIMER_BLINK_INTERVAL, [](auto) {
_window_highlight_colour = !_window_highlight_colour;
});