mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
Fixed a rounding issue with thing angles that sometimes caused things to display odd angles
This commit is contained in:
parent
ba989f3cab
commit
58062181d5
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
// This converts doom angle to real angle
|
||||
public static float DoomToReal(int doomangle)
|
||||
{
|
||||
return Normalized(DegToRad((float)(doomangle + 90)));
|
||||
return (float)Math.Round(Normalized(DegToRad((float)(doomangle + 90))), 4);
|
||||
}
|
||||
|
||||
// This converts real angle to doom angle
|
||||
|
|
Loading…
Reference in a new issue