From f8641c0ffb65402598bd7c51906cba3e2b6f03dc Mon Sep 17 00:00:00 2001 From: Marisa Heit Date: Wed, 2 Nov 2016 00:07:57 -0500 Subject: [PATCH] Fixed: MaxVisForFloor was broken by the switch to floats - TODO: See if these visibility limits are even needed anymore. --- src/r_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_main.cpp b/src/r_main.cpp index 4252f4155a..c69c22c7ba 100644 --- a/src/r_main.cpp +++ b/src/r_main.cpp @@ -355,7 +355,7 @@ void R_SWRSetWindow(int windowSize, int fullWidth, int fullHeight, int stHeight, MaxVisForWall = (InvZtoScale * (SCREENWIDTH*r_Yaspect) / (viewwidth*SCREENHEIGHT * FocalTangent)); MaxVisForWall = 32767.0 / MaxVisForWall; - MaxVisForFloor = 32767.0 / (viewheight * FocalLengthY / 160); + MaxVisForFloor = 32767.0 / (viewheight >> 2) * FocalLengthY / 160; // Reset r_*Visibility vars R_SetVisibility(R_GetVisibility());