Fixed a rounding issue with thing angles that sometimes caused things to display odd angles

This commit is contained in:
codeimp 2010-08-17 18:05:31 +00:00
parent ba989f3cab
commit 58062181d5

View file

@ -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