light: ensure "_surface" value is case-insensitive

This commit is contained in:
Eric Wasylishen 2015-05-14 17:40:38 -06:00
parent 5c268c78d1
commit 8bde00a732
1 changed files with 1 additions and 1 deletions

View File

@ -1138,7 +1138,7 @@ static void SubdividePolygon (const bsp2_dface_t *face, const bsp2_t *bsp, int n
const char *texname = miptex->name;
for (i=0; i<num_surfacelight_templates; i++) {
if (!strcmp(texname, ValueForKey(surfacelight_templates[i], "_surface"))) {
if (!strcasecmp(texname, ValueForKey(surfacelight_templates[i], "_surface"))) {
CreateSurfaceLightOnFaceSubdivision(face, surfacelight_templates[i], bsp, numverts, verts);
}
}