Skip to content

Commit

Permalink
Remove lm prefix from source radius as dynlights support them too
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Mar 5, 2024
1 parent 4a7e2f1 commit 522833c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
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)
{
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
Expand Down
2 changes: 1 addition & 1 deletion src/level/level_light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ void FLevel::CreateLights()

for (const auto& prop : thing->props)
{
if (!stricmp(prop.key, "lm_sourceradius"))
if (!stricmp(prop.key, "sourceradius"))
{
sourceradius = atof(prop.value);
}
Expand Down

0 comments on commit 522833c

Please sign in to comment.