summaryrefslogtreecommitdiff
path: root/src/cl_fx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cl_fx.c')
-rw-r--r--src/cl_fx.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cl_fx.c b/src/cl_fx.c
index 26162e5..86a0a72 100644
--- a/src/cl_fx.c
+++ b/src/cl_fx.c
@@ -1875,9 +1875,14 @@ void CL_AddParticles (void)
part->origin[1] = p->org[1] + p->vel[1]*time + p->accel[1]*time2;
part->origin[2] = p->org[2] + p->vel[2]*time + p->accel[2]*time2;
- if( color == 255 ) {
- FastColorCopy( p->rgb, part->rgb );
+#if USE_REF == REF_GL
+ if( color == -1 ) {
+ part->rgba.u8[0] = p->rgba.u8[0];
+ part->rgba.u8[1] = p->rgba.u8[1];
+ part->rgba.u8[2] = p->rgba.u8[2];
+ part->rgba.u8[3] = p->rgba.u8[3] * alpha;
}
+#endif
part->color = color;
part->alpha = alpha;