mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-08 05:51:09 +00:00
- removed the camera adjustment in FGLRenderer::SetViewArea because this had already been done by R_SetupFrame.
This commit is contained in:
parent
bd67f3b3e5
commit
9af5dd357f
1 changed files with 0 additions and 13 deletions
|
@ -132,19 +132,6 @@ void FGLRenderer::SetViewArea()
|
||||||
// The render_sector is better suited to represent the current position in GL
|
// The render_sector is better suited to represent the current position in GL
|
||||||
viewsector = R_PointInSubsector(viewx, viewy)->render_sector;
|
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!
|
// Get the heightsec state from the render sector, not the current one!
|
||||||
if (viewsector->heightsec && !(viewsector->heightsec->MoreFlags & SECF_IGNOREHEIGHTSEC))
|
if (viewsector->heightsec && !(viewsector->heightsec->MoreFlags & SECF_IGNOREHEIGHTSEC))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue