mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Allow light entities to specify a named light property.
This commit is contained in:
parent
73a280f86a
commit
70d42cc838
1 changed files with 7 additions and 0 deletions
|
@ -175,6 +175,13 @@ set_properties (entity_t *ent, plitem_t *dict)
|
||||||
const char *str;
|
const char *str;
|
||||||
|
|
||||||
if (properties) {
|
if (properties) {
|
||||||
|
prop = PL_ObjectForKey (properties, ent->classname);
|
||||||
|
if ((p = get_item ("_light_name", dict, 0))
|
||||||
|
&& (str = PL_String (p)))
|
||||||
|
prop = PL_ObjectForKey (properties, str);
|
||||||
|
if (!prop)
|
||||||
|
prop = PL_ObjectForKey (properties, ent->classname);
|
||||||
|
|
||||||
prop = PL_ObjectForKey (properties, ent->classname);
|
prop = PL_ObjectForKey (properties, ent->classname);
|
||||||
if (!prop)
|
if (!prop)
|
||||||
prop = PL_ObjectForKey (properties, "default");
|
prop = PL_ObjectForKey (properties, "default");
|
||||||
|
|
Loading…
Reference in a new issue