mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
- account for removed bam2rad function.
This commit is contained in:
parent
0678a469de
commit
eb7a908a92
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue