light: fix use of incorrect color for !nominlimit case

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-03-01 22:03:36 +10:30
parent c458099ec7
commit a1e0f192c7
1 changed files with 2 additions and 2 deletions

View File

@ -943,11 +943,11 @@ LightFace(int surfnum, qboolean nolight, const vec3_t faceoffset)
if (entity->formula == LF_LOCALMIN)
continue;
if (entity->light)
SingleLightFace(entity, &l, faceoffset, colors);
SingleLightFace(entity, &l, faceoffset, entity->lightcolor);
}
/* cast sky light */
if (sunlight)
SkyLightFace(&l, faceoffset, colors);
SkyLightFace(&l, faceoffset, sunlight_color);
}
/* Minimum lighting */