From 204a66b6105aae0a40293464c76076f2b188ff45 Mon Sep 17 00:00:00 2001 From: Jakob Fries Date: Wed, 8 Aug 2007 23:30:55 +0000 Subject: dissapearing sounds and effects are no longer dissapearing --- src/engine/client/client.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/engine/client/client.cpp') 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 { -- cgit 1.4.1