mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
increased the number of snapshots the server will hold from 1 second to 3
This commit is contained in:
parent
bd1556ce76
commit
30695c09a8
|
@ -428,8 +428,8 @@ static void server_do_snap()
|
|||
crc = snapshot_crc((SNAPSHOT*)data);
|
||||
|
||||
/* remove old snapshos */
|
||||
/* keep 1 seconds worth of snapshots */
|
||||
snapstorage_purge_until(&clients[i].snapshots, current_tick-SERVER_TICK_SPEED);
|
||||
/* keep 3 seconds worth of snapshots */
|
||||
snapstorage_purge_until(&clients[i].snapshots, current_tick-SERVER_TICK_SPEED*3);
|
||||
|
||||
/* save it the snapshot */
|
||||
snapstorage_add(&clients[i].snapshots, current_tick, time_get(), snapshot_size, data, 0);
|
||||
|
|
Loading…
Reference in a new issue