From 2e57fd84ef8e699fbb3105b44971d1de6620db05 Mon Sep 17 00:00:00 2001 From: "Zephaniah E. Hull" Date: Thu, 11 Jan 2001 10:05:42 +0000 Subject: [PATCH] Minor cleanup of dlights. (On init they are now white, instead of black.) --- source/cl_ents.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/cl_ents.c b/source/cl_ents.c index bc6f45f..8a3f13c 100644 --- a/source/cl_ents.c +++ b/source/cl_ents.c @@ -107,6 +107,7 @@ CL_AllocDlight (int key) memset (dl, 0, sizeof (*dl)); dl->key = key; dl->color = dl->_color; + dl->color[0] = dl->color[1] = dl->color[2] = 1; return dl; } } @@ -118,6 +119,7 @@ CL_AllocDlight (int key) memset (dl, 0, sizeof (*dl)); dl->key = key; dl->color = dl->_color; + dl->color[0] = dl->color[1] = dl->color[2] = 1; return dl; } } @@ -616,7 +618,7 @@ CL_LinkPacketEntities (void) } if (model->flags & EF_ROCKET) { - dl = CL_AllocDlight (-s1->number); + dl = CL_AllocDlight (-(*ent)->keynum); VectorCopy ((*ent)->origin, dl->origin); dl->radius = 200; VectorCopy (r_firecolor->vec, dl->color);