mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
No prediction or updates if we are offline. For real.
This commit is contained in:
parent
fce6a2c10d
commit
8a12d252b5
|
@ -852,11 +852,8 @@ static void client_pump_network()
|
|||
|
||||
static void client_update()
|
||||
{
|
||||
if(client_state() == CLIENTSTATE_OFFLINE)
|
||||
return;
|
||||
|
||||
/* switch snapshot */
|
||||
if(recived_snapshots >= 3)
|
||||
if(client_state() != CLIENTSTATE_OFFLINE && recived_snapshots >= 3)
|
||||
{
|
||||
int repredict = 0;
|
||||
int64 now = st_get(&game_time, time_get());
|
||||
|
|
Loading…
Reference in a new issue