mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
Fixed angle normalization (caused problems with 0 and 360 degrees in DoomToReal and RealToDoom angle conversion)
This commit is contained in:
parent
1ecb3ad425
commit
7580955d3e
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
public static float Normalized(float a)
|
||||
{
|
||||
while(a < 0f) a += PI2;
|
||||
while(a > PI2) a -= PI2;
|
||||
while(a >= PI2) a -= PI2;
|
||||
return a;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue