Calculate tick related values based on current game speed

This commit is contained in:
Anders Jenbo 2020-10-29 20:39:42 +01:00
commit c54cc2013c
5 changed files with 5 additions and 6 deletions

View file

@ -227,7 +227,7 @@ BOOL nthread_has_500ms_passed(BOOL unused)
currentTickCount = SDL_GetTicks();
ticksElapsed = currentTickCount - last_tick;
if (gbMaxPlayers == 1 && ticksElapsed > 500) {
if (gbMaxPlayers == 1 && ticksElapsed > tick_delay * 10) {
last_tick = currentTickCount;
ticksElapsed = 0;
}