From eb7a908a92ecd8cd3a5e852e5d56f873ec775fcb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 8 Feb 2016 22:06:26 +0100 Subject: [PATCH] - account for removed bam2rad function. --- src/gl/scene/gl_scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 7a961d2cd2..5f0cb89940 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -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);