aboutsummaryrefslogtreecommitdiffstats
path: root/include/timer.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-21 11:22:42 +0100
committerGravatar Sadie Powell2023-07-21 11:22:42 +0100
commit1a746b2c7f4ef52cc8a5eea79f51ebaae3be022c (patch)
tree135c12174d42a177a93ad27c886303831475bee1 /include/timer.h
parentMove 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.h2
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