mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Changed, Sector drawing: sector height is set to 0 when the nearest sector's height is < 0 (previously default sector height was used when the nearest sector's height was <= 0).
This commit is contained in:
parent
437fe9ce86
commit
c2ef080268
2 changed files with 6 additions and 7 deletions
|
@ -581,12 +581,6 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
newsector.Brightness = General.Settings.DefaultBrightness;
|
||||
}
|
||||
|
||||
//mxd. Better any height than none
|
||||
if(newsector.CeilHeight - newsector.FloorHeight <= 0)
|
||||
{
|
||||
newsector.CeilHeight = newsector.FloorHeight + (General.Settings.DefaultCeilingHeight - General.Settings.DefaultFloorHeight);
|
||||
}
|
||||
|
||||
//mxd. Apply overrides?
|
||||
if(useOverrides)
|
||||
{
|
||||
|
@ -596,6 +590,11 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
if(General.Map.Options.OverrideFloorHeight) newsector.FloorHeight = General.Map.Options.CustomFloorHeight;
|
||||
if(General.Map.Options.OverrideBrightness) newsector.Brightness = General.Map.Options.CustomBrightness;
|
||||
}
|
||||
//mxd. Avoid invalid height
|
||||
else if(newsector.CeilHeight < newsector.FloorHeight)
|
||||
{
|
||||
newsector.CeilHeight = newsector.FloorHeight;
|
||||
}
|
||||
|
||||
// Go for all sides to make sidedefs
|
||||
foreach(LinedefSide ls in alllines)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<assemblyIdentity version="1.0.0.0" name="GZDoomBuilder.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
|
|
Loading…
Reference in a new issue