From 159a00939a44835885f6f151a029eb42237a0908 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 2 Mar 2008 16:32:15 +0000 Subject: [PATCH] fix missing particles when you join a server late in the game git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8183 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_particles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_particles.c b/cl_particles.c index eb98eb37..cc2f16d6 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -2006,7 +2006,7 @@ void R_DrawDecals (void) float drawdist2; frametime = bound(0, cl.time - cl.decals_updatetime, 1); - cl.decals_updatetime += frametime; + cl.decals_updatetime = bound(cl.time - 1, cl.decals_updatetime + frametime, cl.time + 1); // LordHavoc: early out conditions if ((!cl.num_decals) || (!r_drawdecals.integer)) @@ -2267,7 +2267,7 @@ void R_DrawParticles (void) qboolean update; frametime = bound(0, cl.time - cl.particles_updatetime, 1); - cl.particles_updatetime += frametime; + cl.particles_updatetime = bound(cl.time - 1, cl.particles_updatetime + frametime, cl.time + 1); // LordHavoc: early out conditions if ((!cl.num_particles) || (!r_drawparticles.integer)) -- 2.39.2