- removed the camera adjustment in FGLRenderer::SetViewArea because this had already been done by R_SetupFrame.

This commit is contained in:
Christoph Oelckers 2016-02-20 02:20:18 +01:00
parent bd67f3b3e5
commit 9af5dd357f

View file

@ -132,19 +132,6 @@ void FGLRenderer::SetViewArea()
// The render_sector is better suited to represent the current position in GL
viewsector = R_PointInSubsector(viewx, viewy)->render_sector;
// keep the view within the render sector's floor and ceiling
fixed_t theZ = viewsector->ceilingplane.ZatPoint (viewx, viewy) - 4*FRACUNIT;
if (viewz > theZ)
{
viewz = theZ;
}
theZ = viewsector->floorplane.ZatPoint (viewx, viewy) + 4*FRACUNIT;
if (viewz < theZ)
{
viewz = theZ;
}
// Get the heightsec state from the render sector, not the current one!
if (viewsector->heightsec && !(viewsector->heightsec->MoreFlags & SECF_IGNOREHEIGHTSEC))
{