mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 12:50:52 +00:00
Fixed a crash in Edit Selection Mode when visual sloping was previously used to make the slope of a sector perfectly planar
This commit is contained in:
parent
138c96bb13
commit
b83467148b
1 changed files with 2 additions and 2 deletions
|
@ -1344,10 +1344,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
float floorz = s.FloorHeight;
|
||||
float ceilingz = s.CeilHeight;
|
||||
|
||||
if (!float.IsNaN(s.FloorSlopeOffset))
|
||||
if (!float.IsNaN(s.FloorSlopeOffset) && s.FloorSlope.IsNormalized())
|
||||
floorz = new Plane(s.FloorSlope, s.FloorSlopeOffset).GetZ(center);
|
||||
|
||||
if (!float.IsNaN(s.CeilSlopeOffset))
|
||||
if (!float.IsNaN(s.CeilSlopeOffset) && s.CeilSlope.IsNormalized())
|
||||
ceilingz = new Plane(s.CeilSlope, s.CeilSlopeOffset).GetZ(center);
|
||||
|
||||
slopeheights.Add(s, new float[] { floorz, ceilingz });
|
||||
|
|
Loading…
Reference in a new issue