X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cl_main.c;h=420203b4f4e0c641d2fe54887432550e4c1a46d1;hb=2bc57e09fc5ad356b342bb0dc466b5a761583802;hp=ab7ec1b3c6cddc665071e858b2d95a71b72d2faf;hpb=1a606ca4c462e8a9a76cd5e7e085efbecbe90009;p=xonotic%2Fdarkplaces.git diff --git a/cl_main.c b/cl_main.c index ab7ec1b3..420203b4 100644 --- a/cl_main.c +++ b/cl_main.c @@ -1261,6 +1261,8 @@ void CL_UpdateNetworkEntityTrail(entity_t *e) // do trails if (e->render.flags & RENDER_GLOWTRAIL) trailtype = EFFECT_TR_GLOWTRAIL; + if (e->state_current.traileffectnum) + trailtype = (effectnameindex_t)e->state_current.traileffectnum; // check if a trail is allowed (it is not after a teleport for example) if (trailtype && e->persistent.trail_allowed) { @@ -1558,6 +1560,8 @@ void CL_LinkNetworkEntity(entity_t *e) // do trail light if (e->render.flags & RENDER_GLOWTRAIL) trailtype = EFFECT_TR_GLOWTRAIL; + if (e->state_current.traileffectnum) + trailtype = (effectnameindex_t)e->state_current.traileffectnum; if (trailtype) CL_ParticleTrail(trailtype, 1, origin, origin, vec3_origin, vec3_origin, NULL, e->state_current.glowcolor, true, false, NULL, NULL);