Skip to content
Snippets Groups Projects
Commit 946fef8f authored by sphere's avatar sphere
Browse files

Fix local brightness change not working properly with shadow-casting FOFs above

parent 6bb4df35
No related branches found
No related tags found
No related merge requests found
......@@ -403,7 +403,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
vs.UpdateSectorGeometry(true);
}
// This is actual floor of a sector with extrafloors
else if (level != null && Sector.ExtraFloors.Count > 0 && !Sector.ExtraFloors[0].ExtraFloor.Floor.restrictlighting && !Sector.ExtraFloors[0].ExtraFloor.Floor.disablelighting)
else if (!local && level != null && Sector.ExtraFloors.Count > 0 && !Sector.ExtraFloors[0].ExtraFloor.Floor.restrictlighting && !Sector.ExtraFloors[0].ExtraFloor.Floor.disablelighting)
{
Sector.ExtraFloors[0].OnChangeTargetBrightness(up, local);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment