Fixed: MaxVisForFloor was broken by the switch to floats

- TODO: See if these visibility limits are even needed anymore.
This commit is contained in:
Marisa Heit 2016-11-02 00:07:57 -05:00
parent 3f32ccada6
commit f8641c0ffb

View file

@ -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());