From 6fa8bf706e2df2bb28f0b97c9194e315c6f51473 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Tue, 5 Oct 2021 13:11:12 +0800 Subject: [PATCH] Change the sunlight DoomEdNum to 9890, to prevent clash with PointLightStatic --- README.md | 2 +- src/level/level_light.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b4ee63..ac83ad9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ thing // LightProbe (light sampling point for actors) thing // Sunlight (sunlight properties for the map) { - type = 9876; + type = 9890; suncolor = <int> (color) sundirx = <float> (X direction for the sun) sundiry = <float> (Y direction for the sun) diff --git a/src/level/level_light.cpp b/src/level/level_light.cpp index 465ccd6..2192ca2 100644 --- a/src/level/level_light.cpp +++ b/src/level/level_light.cpp @@ -91,7 +91,7 @@ void FLevel::SetupLights() { ThingLightProbes.Push(i); } - else if (thing->type == 9876) // Sunlight + else if (thing->type == 9890) // Sunlight { uint32_t lightcolor = 0xffffff; Vec3 sundir(0.0f, 0.0f, 0.0f);