diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-17 02:03:56 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-17 02:03:56 +0000 |
| commit | 34b1177b998b14eba1f83f1a37841c29c1d94901 (patch) | |
| tree | 078594df2d295326cfcf0b0a1b2b7b21cbe002b8 | |
| parent | f62a215b706832c77c1e37e803558623b015e76b (diff) | |
| download | zcatch-34b1177b998b14eba1f83f1a37841c29c1d94901.tar.gz zcatch-34b1177b998b14eba1f83f1a37841c29c1d94901.zip | |
fixed issue with particles disappering
| -rw-r--r-- | src/game/client/gc_effects.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; |