From 34b1177b998b14eba1f83f1a37841c29c1d94901 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 17 Mar 2008 02:03:56 +0000 Subject: fixed issue with particles disappering --- src/game/client/gc_effects.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/game') diff --git a/src/game/client/gc_effects.cpp b/src/game/client/gc_effects.cpp index 1f2c0b63..4b811e2f 100644 --- a/src/game/client/gc_effects.cpp +++ b/src/game/client/gc_effects.cpp @@ -203,21 +203,21 @@ void effect_explosion(vec2 pos) void effects_update() { - static float last_update_100hz = 0; - static float last_update_50hz = 0; + static int64 last_update_100hz = 0; + static int64 last_update_50hz = 0; - if(client_localtime()-last_update_100hz > 0.01f) + if(time_get()-last_update_100hz > time_freq()/100) { add_100hz = true; - last_update_100hz = client_localtime(); + last_update_100hz = time_get(); } else add_100hz = false; - if(client_localtime()-last_update_50hz > 0.02f) + if(time_get()-last_update_50hz > time_freq()/100) { add_50hz = true; - last_update_50hz = client_localtime(); + last_update_50hz = time_get(); } else add_50hz = false; -- cgit 1.4.1