Make linedef angles match SRB2 again

This commit is contained in:
spherallic 2023-02-16 01:22:54 +01:00
parent 90b59fcebc
commit 448f85d7ad
2 changed files with 2 additions and 1 deletions

View file

@ -204,7 +204,7 @@ namespace CodeImp.DoomBuilder.Controls
#endif
action.Text = act.ToString();
length.Text = l.Length.ToString("0.##");
angle.Text = l.AngleDeg - 90 + "\u00B0";
angle.Text = General.ClampAngle(l.AngleDeg - 90) + "\u00B0";
unpegged.Text = peggedness;
unpegged.Enabled = (peggedness != "None"); //mxd
peglabel.Enabled = (peggedness != "None"); //mxd

View file

@ -129,6 +129,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
if(showangle)
{
int displayangle = (int)Math.Round(Angle2D.RadToDeg(delta.GetAngle()));
displayangle = General.ClampAngle(displayangle - 90);
label.Text = "L:" + length.ToString(VALUE_FORMAT) + "; A:" + displayangle;
}
else