From 8a12d252b515d245a08520d1d92d63b0a1c0fc61 Mon Sep 17 00:00:00 2001 From: Joel de Vahl Date: Sun, 9 Dec 2007 10:49:47 +0000 Subject: [PATCH] No prediction or updates if we are offline. For real. --- src/engine/client/client.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/engine/client/client.c b/src/engine/client/client.c index 7c6e52ad5..d1ab4cdb5 100644 --- a/src/engine/client/client.c +++ b/src/engine/client/client.c @@ -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());