mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed game timer issue
This commit is contained in:
parent
64c9966ca0
commit
dfdb614ef5
|
@ -770,9 +770,9 @@ static int server_run()
|
||||||
snapstorage_purge_all(&clients[c].snapshots);
|
snapstorage_purge_all(&clients[c].snapshots);
|
||||||
}
|
}
|
||||||
|
|
||||||
mods_init();
|
|
||||||
game_start_time = time_get();
|
game_start_time = time_get();
|
||||||
current_tick = 0;
|
current_tick = 0;
|
||||||
|
mods_init();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -166,7 +166,7 @@ void gameobject::tick()
|
||||||
{
|
{
|
||||||
warmup--;
|
warmup--;
|
||||||
if(!warmup)
|
if(!warmup)
|
||||||
resetgame();
|
startround();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(game_over_tick != -1)
|
if(game_over_tick != -1)
|
||||||
|
|
Loading…
Reference in a new issue