diff --git a/README.md b/README.md index d447d47..dc72871 100644 --- a/README.md +++ b/README.md @@ -75,9 +75,9 @@ thing // LightProbe (light sampling point for actors) linedef // Line emissive surface { - lightcolor = <int> (color, default: white) - lightintensity = <float> (default: 1) - lightdistance = <float> (default: 0, no light) + lightcolorline = <int> (color, default: white) + lightintensityline = <float> (default: 1) + lightdistanceline = <float> (default: 0, no light) } sector // Sector plane emissive surface diff --git a/src/level/level_light.cpp b/src/level/level_light.cpp index 793319e..d24adb9 100644 --- a/src/level/level_light.cpp +++ b/src/level/level_light.cpp @@ -370,15 +370,15 @@ void FLevel::CreateLights() for (unsigned int propIndex = 0; propIndex < line->props.Size(); propIndex++) { const UDMFKey &key = line->props[propIndex]; - if (!stricmp(key.key, "lightcolor")) + if (!stricmp(key.key, "lightcolorline")) { lightcolor = atoi(key.value); } - else if (!stricmp(key.key, "lightintensity")) + else if (!stricmp(key.key, "lightintensityline")) { lightintensity = atof(key.value); } - else if (!stricmp(key.key, "lightdistance")) + else if (!stricmp(key.key, "lightdistanceline")) { lightdistance = atof(key.value); }