diff options
| author | 2023-07-21 11:22:42 +0100 | |
|---|---|---|
| committer | 2023-07-21 11:22:42 +0100 | |
| commit | 1a746b2c7f4ef52cc8a5eea79f51ebaae3be022c (patch) | |
| tree | 135c12174d42a177a93ad27c886303831475bee1 /include/timer.h | |
| parent | Move checks for whether a user is cloakable to {Get,Reset}Cloaks. (diff) | |
Allow timers to not be restarted after changing the interval.
This is useful if you're changing them from Tick.
Diffstat (limited to 'include/timer.h')
| -rw-r--r-- | include/timer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/timer.h b/include/timer.h index 7979f2f5a..ee665eb2d 100644 --- a/include/timer.h +++ b/include/timer.h @@ -79,7 +79,7 @@ public: /** Sets the interval between two ticks. */ - void SetInterval(unsigned long interval); + void SetInterval(unsigned long interval, bool restart = true); /** Called when the timer ticks. * You should override this method with some useful code to |
