this can be just M_PI

This commit is contained in:
Alug committed 2024-03-21 12:52:40 +01:00
1 parent d978bfd0db
commit 340034adf7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -333,7 +333,7 @@ angle_t gld_FrustumAngle(angle_t tiltangle)
// ok, this is a gross hack that barely works...
// but at least it doesn't overestimate too much...
clipfov = atan(1 / projMatrix[0]) * 360 / M_PIl;
clipfov = atan(1 / projMatrix[0]) * 360 / M_PI;
floatangle = 2.0f + (45.0f + (tilt / 1.9f)) * clipfov / 90.0f;
if (floatangle >= 180.0)
return 0xffffffff;
+1 -1
View File
@@ -2952,7 +2952,7 @@ EXPORT void HWRAPI(SetTransform) (FTransform *stransform)
if (special_splitscreen)
{
used_fov = atan(tan(used_fov*M_PIl/360)*0.8)*360/M_PIl;
used_fov = (float)(atan(tan(used_fov*M_PI/360)*0.8)*360/M_PI);
GLPerspective((GLfloat)used_fov, 2*ASPECT_RATIO);
}
else