Merge pull request #6 from nashmuhandes/SunlightEdNumProposal

Change the sunlight DoomEdNum to 9890, to prevent clash with PointLightStatic
This commit is contained in:
Magnus Norddahl 2021-10-05 11:20:32 +02:00 committed by GitHub
commit b61fbe7032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ thing // LightProbe (light sampling point for actors)
thing // Sunlight (sunlight properties for the map) thing // Sunlight (sunlight properties for the map)
{ {
type = 9876; type = 9890;
suncolor = <int> (color) suncolor = <int> (color)
sundirx = <float> (X direction for the sun) sundirx = <float> (X direction for the sun)
sundiry = <float> (Y direction for the sun) sundiry = <float> (Y direction for the sun)

View file

@ -91,7 +91,7 @@ void FLevel::SetupLights()
{ {
ThingLightProbes.Push(i); ThingLightProbes.Push(i);
} }
else if (thing->type == 9876) // Sunlight else if (thing->type == 9890) // Sunlight
{ {
uint32_t lightcolor = 0xffffff; uint32_t lightcolor = 0xffffff;
Vec3 sundir(0.0f, 0.0f, 0.0f); Vec3 sundir(0.0f, 0.0f, 0.0f);