]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix C++ compile errors
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 27 Jun 2011 02:20:27 +0000 (02:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 27 Jun 2011 02:20:27 +0000 (02:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11223 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 7372d1d293c74564db165f4c1ff98f206b3edf11..420203b4f4e0c641d2fe54887432550e4c1a46d1 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1262,7 +1262,7 @@ void CL_UpdateNetworkEntityTrail(entity_t *e)
        if (e->render.flags & RENDER_GLOWTRAIL)
                trailtype = EFFECT_TR_GLOWTRAIL;
        if (e->state_current.traileffectnum)
-               trailtype = 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)
        {
@@ -1561,7 +1561,7 @@ void CL_LinkNetworkEntity(entity_t *e)
        if (e->render.flags & RENDER_GLOWTRAIL)
                trailtype = EFFECT_TR_GLOWTRAIL;
        if (e->state_current.traileffectnum)
-               trailtype = 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);