mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 05:21:58 +00:00
Minor cleanup of dlights.
(On init they are now white, instead of black.)
This commit is contained in:
parent
1369e3f28c
commit
2e57fd84ef
1 changed files with 3 additions and 1 deletions
|
@ -107,6 +107,7 @@ CL_AllocDlight (int key)
|
||||||
memset (dl, 0, sizeof (*dl));
|
memset (dl, 0, sizeof (*dl));
|
||||||
dl->key = key;
|
dl->key = key;
|
||||||
dl->color = dl->_color;
|
dl->color = dl->_color;
|
||||||
|
dl->color[0] = dl->color[1] = dl->color[2] = 1;
|
||||||
return dl;
|
return dl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,6 +119,7 @@ CL_AllocDlight (int key)
|
||||||
memset (dl, 0, sizeof (*dl));
|
memset (dl, 0, sizeof (*dl));
|
||||||
dl->key = key;
|
dl->key = key;
|
||||||
dl->color = dl->_color;
|
dl->color = dl->_color;
|
||||||
|
dl->color[0] = dl->color[1] = dl->color[2] = 1;
|
||||||
return dl;
|
return dl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -616,7 +618,7 @@ CL_LinkPacketEntities (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (model->flags & EF_ROCKET) {
|
if (model->flags & EF_ROCKET) {
|
||||||
dl = CL_AllocDlight (-s1->number);
|
dl = CL_AllocDlight (-(*ent)->keynum);
|
||||||
VectorCopy ((*ent)->origin, dl->origin);
|
VectorCopy ((*ent)->origin, dl->origin);
|
||||||
dl->radius = 200;
|
dl->radius = 200;
|
||||||
VectorCopy (r_firecolor->vec, dl->color);
|
VectorCopy (r_firecolor->vec, dl->color);
|
||||||
|
|
Loading…
Reference in a new issue