Remove lm prefix from source radius as dynlights support them too

This commit is contained in:
Magnus Norddahl 2024-03-05 16:12:13 +01:00
parent 4a7e2f1dcf
commit 522833c591
2 changed files with 3 additions and 3 deletions

View file

@ -55,13 +55,13 @@ thing // ZDRayInfo (ZDRay properties for the map)
thing // Lightmap point light (Light color and distance properties use the same args as dynamic lights) thing // Lightmap point light (Light color and distance properties use the same args as dynamic lights)
{ {
type = 9876; type = 9876;
lm_sourceradius = <float> (default: 5, radius of the light source in map units; controls the softness) sourceradius = <float> (default: 5, radius of the light source in map units; controls the softness)
} }
thing // Lightmap spotlight (Light color, distance and angle properties use the same args as dynamic lights) thing // Lightmap spotlight (Light color, distance and angle properties use the same args as dynamic lights)
{ {
type = 9881; type = 9881;
lm_sourceradius = <float> (default: 5, radius of the light source in map units; controls the softness) sourceradius = <float> (default: 5, radius of the light source in map units; controls the softness)
} }
linedef linedef

View file

@ -282,7 +282,7 @@ void FLevel::CreateLights()
for (const auto& prop : thing->props) for (const auto& prop : thing->props)
{ {
if (!stricmp(prop.key, "lm_sourceradius")) if (!stricmp(prop.key, "sourceradius"))
{ {
sourceradius = atof(prop.value); sourceradius = atof(prop.value);
} }