diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 5f0cb8994..6780a0e55 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)) {