Initialize d_lightstylevalue.

"Let there be light!", but chaos still reigns (broken lightmap updates).
This commit is contained in:
Bill Currie 2012-01-09 01:26:16 +09:00
parent 1229d24ef6
commit f658e6c32e

View file

@ -212,6 +212,11 @@ R_Init (void)
VISIBLE void
R_NewMap (model_t *worldmodel, struct model_s **models, int num_models)
{
int i;
for (i = 0; i < 256; i++)
d_lightstylevalue[i] = 264; // normal light value
memset (&r_worldentity, 0, sizeof (r_worldentity));
r_worldentity.model = worldmodel;