mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Using the "Reset plane slope" action now sets the floor or ceiling heights to the height of the plane at the sector's bounding box center
This commit is contained in:
parent
7d2e3db982
commit
1e3cf5ccec
1 changed files with 6 additions and 0 deletions
|
@ -4422,12 +4422,18 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
if (applytoceiling)
|
||||
{
|
||||
// Set the ceiling height to something hopefully sensible
|
||||
level.sector.CeilHeight = (int)Math.Round(level.plane.GetZ(level.sector.BBox.X + level.sector.BBox.Width / 2, level.sector.BBox.Y + level.sector.BBox.Height / 2));
|
||||
|
||||
level.sector.CeilSlopeOffset = double.NaN;
|
||||
level.sector.CeilSlope = new Vector3D();
|
||||
numceilings++;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Set the floor height to something hopefully sensible
|
||||
level.sector.FloorHeight = (int)Math.Round(level.plane.GetZ(level.sector.BBox.X + level.sector.BBox.Width / 2, level.sector.BBox.Y + level.sector.BBox.Height / 2));
|
||||
|
||||
level.sector.FloorSlopeOffset = double.NaN;
|
||||
level.sector.FloorSlope = new Vector3D();
|
||||
numfloors++;
|
||||
|
|
Loading…
Reference in a new issue