mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-21 19:50:54 +00:00
Remove lm prefix from source radius as dynlights support them too
This commit is contained in:
parent
4a7e2f1dcf
commit
522833c591
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue