about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoel de Vahl <joel@stalverk80.se>2007-12-09 10:49:47 +0000
committerJoel de Vahl <joel@stalverk80.se>2007-12-09 10:49:47 +0000
commit8a12d252b515d245a08520d1d92d63b0a1c0fc61 (patch)
tree150343d9334ea21b2b047ae706909941b645b963
parentfce6a2c10d52e7a104c8c5a94d2b08d283d6a4e5 (diff)
downloadzcatch-8a12d252b515d245a08520d1d92d63b0a1c0fc61.tar.gz
zcatch-8a12d252b515d245a08520d1d92d63b0a1c0fc61.zip
No prediction or updates if we are offline. For real.
-rw-r--r--src/engine/client/client.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/engine/client/client.c b/src/engine/client/client.c
index 7c6e52ad..d1ab4cdb 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());