summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2020-03-07 19:34:50 +0100
committerPatric Stout <github@truebrain.nl>2021-01-10 14:07:17 +0100
commitc0d7949d7c798285cc289bb9c76b4b155256456c (patch)
tree254d70ce418761c5b86f3844180c049a83daffa1 /src/window_gui.h
parent97d554feb175179c7af70f7d61cf56886b3090bd (diff)
downloadopenttd-c0d7949d7c798285cc289bb9c76b4b155256456c.tar.xz
Fix: Don't use a timer for hundredth tick determination
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index b03f5bbca..c792a6b28 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -691,7 +691,9 @@ public:
virtual void OnGameTick() {}
/**
- * Called once every 100 (game) ticks.
+ * Called once every 100 (game) ticks, or once every 3s, whichever comes last.
+ * In normal game speed the frequency is 1 call every 100 ticks (can be more than 3s).
+ * In fast-forward the frequency is 1 call every ~3s (can be more than 100 ticks).
*/
virtual void OnHundredthTick() {}