about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoel de Vahl <joel@stalverk80.se>2007-12-09 10:44:35 +0000
committerJoel de Vahl <joel@stalverk80.se>2007-12-09 10:44:35 +0000
commitfce6a2c10d52e7a104c8c5a94d2b08d283d6a4e5 (patch)
tree0d332c5e8dc4fed134dd1bc6e20fa3a27f58c2ec
parent12d13a2d3440e026322120e608e7c5ee0f50cfa8 (diff)
downloadzcatch-fce6a2c10d52e7a104c8c5a94d2b08d283d6a4e5.tar.gz
zcatch-fce6a2c10d52e7a104c8c5a94d2b08d283d6a4e5.zip
No prediction or updates if we are offline.
-rw-r--r--src/engine/client/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/client/client.c b/src/engine/client/client.c
index bcc350d2..7c6e52ad 100644
--- a/src/engine/client/client.c
+++ b/src/engine/client/client.c
@@ -852,6 +852,8 @@ static void client_pump_network()
 
 static void client_update()
 {
+	if(client_state() == CLIENTSTATE_OFFLINE)
+		return;
 
 	/* switch snapshot */
 	if(recived_snapshots >= 3)