Display sky on horizon lines

This commit is contained in:
spherallic 2023-09-11 00:37:20 +02:00
parent 6bedba39ad
commit 570040f011
2 changed files with 9 additions and 0 deletions

View file

@ -58,6 +58,7 @@ udmf
41
{
title = "Horizon Effect";
id = "srb2_horizonline";
prefix = "(41)";
}

View file

@ -89,6 +89,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Load sector data
SectorData sd = mode.GetSectorData(Sidedef.Sector);
// Apply sky hack?
UpdateSkyRenderFlag();
// Texture given?
if (Sidedef.LongMiddleTexture != MapSet.EmptyLongName)
{
@ -367,6 +370,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
}
internal void UpdateSkyRenderFlag()
{
renderassky = General.Map.Config.LinedefActions.ContainsKey(Sidedef.Line.Action) && General.Map.Config.LinedefActions[Sidedef.Line.Action].Id.ToLowerInvariant() == "srb2_horizonline";
}
#endregion
}
}