diff options
author | Peter Nelson <peter1138@openttd.org> | 2018-05-10 21:49:52 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-01-11 11:56:21 +0000 |
commit | ead9c9eab5d206cb13eb169e392e1291e767efaf (patch) | |
tree | 862e3bf0d8f3c16e394abf010f447fcf6d3820c6 /src/openttd.cpp | |
parent | 15320a37b9255f28b5e66404b33e6fb0f1f05e9e (diff) | |
download | openttd-ead9c9eab5d206cb13eb169e392e1291e767efaf.tar.xz |
Change: Switch various window timers to real time instead of game ticks.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index fdde19140..0e0b4188a 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1473,10 +1473,6 @@ void GameLoop() IncreaseSpriteLRU(); InteractiveRandom(); - extern int _caret_timer; - _caret_timer += 3; - CursorTick(); - #ifdef ENABLE_NETWORK /* Check for UDP stuff */ if (_network_available) NetworkBackgroundLoop(); @@ -1493,13 +1489,6 @@ void GameLoop() /* Singleplayer */ StateGameLoop(); } - - /* Check chat messages roughly once a second. */ - static uint check_message = 0; - if (++check_message > 1000 / MILLISECONDS_PER_TICK) { - check_message = 0; - NetworkChatMessageLoop(); - } #else StateGameLoop(); #endif /* ENABLE_NETWORK */ |