From: havoc Date: Sat, 7 Apr 2018 20:46:54 +0000 (+0000) Subject: Missed the cl_particles.c edits to remove RSurf_ActiveWorldEntity. I blame VS2017... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7407bbbcf97cc0f105b00c1affdadc84febdf245;p=xonotic%2Fdarkplaces.git Missed the cl_particles.c edits to remove RSurf_ActiveWorldEntity. I blame VS2017, just because. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12372 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 0fe0be4d..5e873998 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -2500,7 +2500,7 @@ static void R_DrawDecal_TransparentCallback(const entity_render_t *ent, const rt vec_t right[3], up[3], size, ca; float alphascale = (1.0f / 65536.0f) * cl_particles_alpha.value; - RSurf_ActiveWorldEntity(); + RSurf_ActiveModelEntity(r_refdef.scene.worldentity, false, false, false); r_refdef.stats[r_stat_drawndecals] += numsurfaces; // R_Mesh_ResetTextureState(); @@ -2659,7 +2659,7 @@ static void R_DrawParticle_TransparentCallback(const entity_render_t *ent, const float minparticledist_start, minparticledist_end; qboolean dofade; - RSurf_ActiveWorldEntity(); + RSurf_ActiveModelEntity(r_refdef.scene.worldentity, false, false, false); Vector4Set(colormultiplier, r_refdef.view.colorscale * (1.0 / 256.0f), r_refdef.view.colorscale * (1.0 / 256.0f), r_refdef.view.colorscale * (1.0 / 256.0f), cl_particles_alpha.value * (1.0 / 256.0f));