]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_tent.c
fix for EF_FLAME and lots of other bugs with 16bit/8bit fields (modelindex, frame...
[xonotic/darkplaces.git] / cl_tent.c
index 387a64cb8f9ce7e0e08c52a4266775e92ef6e8ee..971dc6ef28b3bd4c3ec97344c6849e2c2c7d7ccb 100644 (file)
--- a/cl_tent.c
+++ b/cl_tent.c
@@ -114,7 +114,7 @@ void CL_ParseTEnt (void)
        int             rnd;
        int             colorStart, colorLength, count;
        float   velspeed, radius;
-       byte *tempcolor;
+       qbyte *tempcolor;
 
        type = MSG_ReadByte ();
        switch (type)
@@ -429,7 +429,7 @@ void CL_ParseTEnt (void)
                colorLength = MSG_ReadByte ();
                CL_ParticleExplosion2 (pos, colorStart, colorLength);
 //             CL_BlastParticles (pos, 80, 80);
-               tempcolor = (byte *)&d_8to24table[(rand()%colorLength) + colorStart];
+               tempcolor = (qbyte *)&d_8to24table[(rand()%colorLength) + colorStart];
                CL_AllocDlight (NULL, pos, 350, tempcolor[0] * (1.0f / 255.0f), tempcolor[1] * (1.0f / 255.0f), tempcolor[2] * (1.0f / 255.0f), 700, 0.5);
                S_StartSound (-1, 0, cl_sfx_r_exp3, pos, 1, 1);
                break;