mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
client: reuse combined colors in CL_BlasterParticles2
This commit is contained in:
parent
db0328a251
commit
1d8de9a89a
3 changed files with 5 additions and 5 deletions
|
@ -2925,7 +2925,7 @@ CL_ParticleSmokeEffect(vec3_t org, vec3_t dir, int color,
|
|||
* Wall impact puffs (Green)
|
||||
*/
|
||||
void
|
||||
CL_BlasterParticles2(vec3_t org, vec3_t dir, unsigned int color)
|
||||
CL_BlasterParticles2(vec3_t org, vec3_t dir, unsigned int basecolor, unsigned int finalcolor)
|
||||
{
|
||||
int i, j;
|
||||
cparticle_t *p;
|
||||
|
@ -2950,8 +2950,8 @@ CL_BlasterParticles2(vec3_t org, vec3_t dir, unsigned int color)
|
|||
active_particles = p;
|
||||
|
||||
p->time = time;
|
||||
p->color = VID_PaletteColor(color + (randk() & 7));
|
||||
d = (float)(randk() & 15);
|
||||
p->color = CombineColors(basecolor, finalcolor, d / 15.0);
|
||||
|
||||
for (j = 0; j < 3; j++)
|
||||
{
|
||||
|
|
|
@ -1053,11 +1053,11 @@ CL_ParseTEnt(void)
|
|||
|
||||
if (type == TE_BLASTER2)
|
||||
{
|
||||
CL_BlasterParticles2(pos, dir, 0xd0);
|
||||
CL_BlasterParticles2(pos, dir, 0xff00ff00, 0xffffffff);
|
||||
}
|
||||
else
|
||||
{
|
||||
CL_BlasterParticles2(pos, dir, 0x6f);
|
||||
CL_BlasterParticles2(pos, dir, 0xffb7a787, 0xff5b430f);
|
||||
}
|
||||
|
||||
ex = CL_AllocExplosion();
|
||||
|
|
|
@ -395,7 +395,7 @@ void CL_FlagTrail (vec3_t start, vec3_t end, int color);
|
|||
|
||||
void CL_IonripperTrail (vec3_t start, vec3_t end);
|
||||
|
||||
void CL_BlasterParticles2 (vec3_t org, vec3_t dir, unsigned int color);
|
||||
void CL_BlasterParticles2 (vec3_t org, vec3_t dir, unsigned int basecolor, unsigned int finalcolor);
|
||||
void CL_BlasterTrail2 (vec3_t start, vec3_t end);
|
||||
void CL_DebugTrail (vec3_t start, vec3_t end);
|
||||
void CL_SmokeTrail (vec3_t start, vec3_t end, int colorStart, int colorRun, int spacing);
|
||||
|
|
Loading…
Reference in a new issue