- account for removed bam2rad function.

This commit is contained in:
Christoph Oelckers 2016-02-08 22:06:26 +01:00
parent 0678a469de
commit eb7a908a92

View file

@ -783,7 +783,7 @@ sector_t * FGLRenderer::RenderViewpoint (AActor * camera, GL_IRECT * bounds, flo
SetViewArea();
// We have to scale the pitch to account for the pixel stretching, because the playsim doesn't know about this and treats it as 1:1.
double radPitch = bam2rad(viewpitch);
double radPitch = ANGLE2RAD(viewpitch);
if (radPitch > PI) radPitch -= 2 * PI;
radPitch = clamp(radPitch, -PI / 2, PI / 2);