- Full freelook is now enabled if r_newrenderer is set to true.

This commit is contained in:
Rachael Alexanderson 2016-11-08 00:44:15 -05:00
parent 2e2d6da00f
commit dffba5267d

View file

@ -250,9 +250,12 @@ void FSoftwareRenderer::DrawRemainingPlayerSprites()
#define MAX_DN_ANGLE 56 // Max looking down angle
#define MAX_UP_ANGLE 32 // Max looking up angle
EXTERN_CVAR(Bool, r_newrenderer) // [SP] dpJudas's new renderer
EXTERN_CVAR(Float, maxviewpitch) // [SP] CVAR from GZDoom
int FSoftwareRenderer::GetMaxViewPitch(bool down)
{
return down ? MAX_DN_ANGLE : MAX_UP_ANGLE;
return (r_newrenderer) ? int(maxviewpitch) : (down ? MAX_DN_ANGLE : MAX_UP_ANGLE);
}
//==========================================================================