No prediction or updates if we are offline. For real.

This commit is contained in:
Joel de Vahl 2007-12-09 10:49:47 +00:00
parent fce6a2c10d
commit 8a12d252b5

View file

@ -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());