Calculate tick related values based on current game speed
This commit is contained in:
parent
b7ca9a812a
commit
c54cc2013c
5 changed files with 5 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue