From 9af5dd357fcd3c6777c7c922bbf955191513159a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 20 Feb 2016 02:20:18 +0100 Subject: [PATCH] - removed the camera adjustment in FGLRenderer::SetViewArea because this had already been done by R_SetupFrame. --- src/gl/scene/gl_scene.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 5f0cb89940..6780a0e550 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -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)) {