light: support switchable lights with any light* classname, not just "light"
This commit is contained in:
parent
8bde00a732
commit
1996bce56d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue