Oops, still need to do physics and such on particles too close to us.

This commit is contained in:
Zephaniah E. Hull 2000-10-29 09:39:38 +00:00
parent 26b2e9d594
commit f0d92da7db

View file

@ -568,9 +568,9 @@ void R_DrawParticles (void)
maxparticle = k;
activeparticles++;
if (DotProduct(part->org, vpn) < minparticledist)
continue;
// Don't render particles too close to us.
// Note, we must still do physics and such on them.
if (!(DotProduct(part->org, vpn) < minparticledist)) {
at = (byte *)&d_8to24table[(byte)part->color];
alpha = part->alpha;
@ -605,6 +605,7 @@ void R_DrawParticles (void)
(part->org[2] + up[2]*scale + right[2]*scale2));
glEnd();
}
for (i=0 ; i<3 ; i++)
part->org[i] += part->vel[i]*host_frametime;