diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-15 12:40:12 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-15 12:40:12 +0000 |
| commit | f817cb231999e51d6721d2b2a3c95d985b08d836 (patch) | |
| tree | adf5009e9b4a581370ceb02fcf4d207dec9449d3 /src/engine/client | |
| parent | 658cd5a78fec827d7db2d5bef304fcbc89833eba (diff) | |
| download | zcatch-f817cb231999e51d6721d2b2a3c95d985b08d836.tar.gz zcatch-f817cb231999e51d6721d2b2a3c95d985b08d836.zip | |
fixed crashing of server side demos due to client_entergame() being processed
Diffstat (limited to 'src/engine/client')
| -rw-r--r-- | src/engine/client/ec_client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/client/ec_client.c b/src/engine/client/ec_client.c index ad52d077..07117b37 100644 --- a/src/engine/client/ec_client.c +++ b/src/engine/client/ec_client.c @@ -337,7 +337,7 @@ enum /* the game snapshots are modifiable by the game */ SNAPSTORAGE snapshot_storage; -static SNAPSTORAGE_HOLDER *snapshots[NUM_SNAPSHOT_TYPES]; +static SNAPSTORAGE_HOLDER *snapshots[NUM_SNAPSHOT_TYPES] = {0, 0}; static int recived_snapshots = 0; static char snapshot_incomming_data[MAX_SNAPSHOT_SIZE]; @@ -599,11 +599,13 @@ static void client_on_enter_game() void client_entergame() { + if(state == CLIENTSTATE_DEMOPLAYBACK) + return; + /* now we will wait for two snapshots */ /* to finish the connection */ client_send_entergame(); client_on_enter_game(); - /*netclient_flush(net);*/ } void client_connect(const char *server_address_str) |