mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-11 14:50:39 +00:00
Oops, still need to do physics and such on particles too close to us.
This commit is contained in:
parent
26b2e9d594
commit
f0d92da7db
1 changed files with 31 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue