mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 21:00:56 +00:00
Display sky on horizon lines
This commit is contained in:
parent
6bedba39ad
commit
570040f011
2 changed files with 9 additions and 0 deletions
|
@ -58,6 +58,7 @@ udmf
|
|||
41
|
||||
{
|
||||
title = "Horizon Effect";
|
||||
id = "srb2_horizonline";
|
||||
prefix = "(41)";
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue