From 05eed4d4a2d93a1d769771140c216747349fbadb Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Sun, 20 Feb 2022 04:28:28 +0800 Subject: [PATCH] Add "line" suffix to the surface light keywords to clearly label their intended usage --- README.md | 6 +++--- src/level/level_light.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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); }