- took GetMaxViewPitch out of renderer interfaces.

With live switching and both renderers on the same backend the old approach will no longer work.
This commit is contained in:
Christoph Oelckers 2018-04-03 19:18:16 +02:00
commit 51bf2eb9fa
6 changed files with 29 additions and 40 deletions

View file

@ -235,13 +235,6 @@ void FSoftwareRenderer::DrawRemainingPlayerSprites()
}
}
int FSoftwareRenderer::GetMaxViewPitch(bool down)
{
int MAX_DN_ANGLE = MIN(56, (int)maxviewpitch); // Max looking down angle
int MAX_UP_ANGLE = MIN(32, (int)maxviewpitch); // Max looking up angle
return (r_polyrenderer) ? int(maxviewpitch) : (down ? MAX_DN_ANGLE : ((cl_oldfreelooklimit) ? MAX_UP_ANGLE : MAX_DN_ANGLE));
}
void FSoftwareRenderer::OnModeSet ()
{
mScene.ScreenResized();