diff options
| author | Jakob Fries <jakob.fries@gmail.com> | 2007-08-08 23:30:55 +0000 |
|---|---|---|
| committer | Jakob Fries <jakob.fries@gmail.com> | 2007-08-08 23:30:55 +0000 |
| commit | 204a66b6105aae0a40293464c76076f2b188ff45 (patch) | |
| tree | fd257da5a672686febfbf1276cfeee79aafd1de1 /src/engine/client/client.cpp | |
| parent | 0c7e1fc6abef36bf41504fcae730b361d515c606 (diff) | |
| download | zcatch-204a66b6105aae0a40293464c76076f2b188ff45.tar.gz zcatch-204a66b6105aae0a40293464c76076f2b188ff45.zip | |
dissapearing sounds and effects are no longer dissapearing
Diffstat (limited to 'src/engine/client/client.cpp')
| -rw-r--r-- | src/engine/client/client.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index dc0a02d0..f3390c51 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -707,8 +707,8 @@ static void client_process_packet(NETPACKET *packet) float current_latency = (now-wanted)/(float)time_freq(); latency = latency*0.95f+current_latency*0.05f; - if(recived_snapshots > 2) - modc_newsnapshot(); + //if(recived_snapshots > 2) + // modc_newsnapshot(); snapshot_part = 0; @@ -838,6 +838,9 @@ static void client_run(const char *direct_connect_server) snapshots[SNAP_PREV] = snapshots[SNAP_CURRENT]; snapshots[SNAP_CURRENT] = next; snapshot_start_time = t; + + if(snapshots[SNAP_CURRENT] && snapshots[SNAP_PREV]) + modc_newsnapshot(); } else { |