mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 14:52:01 +00:00
- Full freelook is now enabled if r_newrenderer is set to true.
This commit is contained in:
parent
2e2d6da00f
commit
dffba5267d
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue