Assign a pvs sample to our particle system handled sprites. So r_ignoreentpvs being 0 will no longer break with them.

This commit is contained in:
Marco Cawthorne 2023-07-26 14:51:40 -07:00
parent 030249f713
commit 5f389d7fbc
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -3231,6 +3231,7 @@ void CL_UpdateExplosions (float frametime)
#ifdef HEXEN2
ent->drawflags = SCALE_ORIGIN_ORIGIN;
#endif
cl.worldmodel->funcs.FindTouchedLeafs(cl.worldmodel, &ent->pvscache, ent->origin, ent->origin);
if (ex->traileffect != P_INVALID)
pe->ParticleTrail(ent->oldorigin, ent->origin, ex->traileffect, frametime, 0, ent->axis, &(ex->trailstate));