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

This commit is contained in:
spherallic 2023-10-17 23:44:38 +02:00
parent 6bb4df359c
commit 946fef8fce

View file

@ -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);
}