diff options
| author | Joel de Vahl <joel@stalverk80.se> | 2007-12-09 10:49:47 +0000 |
|---|---|---|
| committer | Joel de Vahl <joel@stalverk80.se> | 2007-12-09 10:49:47 +0000 |
| commit | 8a12d252b515d245a08520d1d92d63b0a1c0fc61 (patch) | |
| tree | 150343d9334ea21b2b047ae706909941b645b963 | |
| parent | fce6a2c10d52e7a104c8c5a94d2b08d283d6a4e5 (diff) | |
| download | zcatch-8a12d252b515d245a08520d1d92d63b0a1c0fc61.tar.gz zcatch-8a12d252b515d245a08520d1d92d63b0a1c0fc61.zip | |
No prediction or updates if we are offline. For real.
| -rw-r--r-- | src/engine/client/client.c | 5 |
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()); |