light: support switchable lights with any light* classname, not just "light"

This commit is contained in:
Eric Wasylishen 2015-05-15 09:53:53 -06:00
parent 8bde00a732
commit 1996bce56d
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ LoadEntities(const bsp2_t *bsp)
CheckEntityFields(entity);
num_lights++;
}
if (!strcmp(entity->classname, "light")) {
if (!strncmp(entity->classname, "light", 5)) {
if (entity->targetname[0] && !entity->style) {
char style[16];
entity->style = LightStyleForTargetname(entity->targetname);