Fixed a bug where resetting the ceiling slope in the UDMF sector edit form would invert its original height

This commit is contained in:
biwa 2021-02-20 16:17:32 +01:00
parent 93cc15640f
commit 7d2e3db982

View file

@ -917,7 +917,7 @@ namespace CodeImp.DoomBuilder.Windows
diff = Math.Abs(Math.Round(s.CeilSlopeOffset) - s.CeilSlopeOffset);
if (Math.Abs(s.CeilSlope.z) == 1.0 && diff < 0.000000001)
{
s.CeilHeight = -Convert.ToInt32(s.CeilSlopeOffset);
s.CeilHeight = Convert.ToInt32(s.CeilSlopeOffset);
s.CeilSlope = new Vector3D();
s.CeilSlopeOffset = double.NaN;
}