X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=cl_tent.c;fp=cl_tent.c;h=1c921fe36170cfe79008b1ed351d313292172586;hb=ee53ba448ee904bea60939b58c392a64eedadd73;hp=9be371d831deb4ddd65acc707a3bc1f42985ccbd;hpb=16263e2e1a731b84058ef8e7239a33d943b3fd6e;p=xonotic%2Fdarkplaces.git diff --git a/cl_tent.c b/cl_tent.c index 9be371d8..1c921fe3 100644 --- a/cl_tent.c +++ b/cl_tent.c @@ -127,6 +127,7 @@ void CL_ParseTEnt (void) vec3_t pos; vec3_t dir; vec3_t pos2; + vec3_t color; int rnd; int colorStart, colorLength, count; float velspeed, radius; @@ -335,7 +336,10 @@ void CL_ParseTEnt (void) FindNonSolidLocation(pos); R_ParticleExplosion (pos, false); // R_BlastParticles (pos, 120, 120); - CL_AllocDlight (NULL, pos, 350, MSG_ReadByte() * (1.0 / 255.0), MSG_ReadByte() * (1.0 / 255.0), MSG_ReadByte() * (1.0 / 255.0), 700, 0.5); + color[0] = MSG_ReadByte() * (1.0 / 255.0); + color[1] = MSG_ReadByte() * (1.0 / 255.0); + color[2] = MSG_ReadByte() * (1.0 / 255.0); + CL_AllocDlight (NULL, pos, 350, color[0], color[1], color[2], 700, 0.5); S_StartSound (-1, 0, cl_sfx_r_exp3, pos, 1, 1); break; @@ -361,7 +365,10 @@ void CL_ParseTEnt (void) FindNonSolidLocation(pos); radius = MSG_ReadByte() * 8; velspeed = (MSG_ReadByte() + 1) * (1.0 / 256.0); - CL_AllocDlight (NULL, pos, radius, MSG_ReadByte() * (1.0 / 255.0), MSG_ReadByte() * (1.0 / 255.0), MSG_ReadByte() * (1.0 / 255.0), radius / velspeed, velspeed); + color[0] = MSG_ReadByte() * (1.0 / 255.0); + color[1] = MSG_ReadByte() * (1.0 / 255.0); + color[2] = MSG_ReadByte() * (1.0 / 255.0); + CL_AllocDlight (NULL, pos, radius, color[0], color[1], color[2], radius / velspeed, velspeed); break; case TE_FLAMEJET: @@ -374,7 +381,7 @@ void CL_ParseTEnt (void) case TE_LIGHTNING1: // lightning bolts CL_ParseBeam (Mod_ForName("progs/bolt.mdl", true)); break; - + case TE_LIGHTNING2: // lightning bolts CL_ParseBeam (Mod_ForName("progs/bolt2.mdl", true)); break;