Change: Switch various window timers to real time instead of game ticks.

This commit is contained in:
Peter Nelson
2018-05-10 21:49:52 +01:00
committed by PeterN
parent 15320a37b9
commit ead9c9eab5
2 changed files with 35 additions and 29 deletions

View File

@@ -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 */