light: ensure "_surface" value is case-insensitive
This commit is contained in:
parent
5c268c78d1
commit
8bde00a732
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue