cap splitscreen fov for 2p splits

This commit is contained in:
Latapostrophe 2019-09-01 16:54:25 +02:00
parent eb8cb12b8f
commit 7a21e06bec
1 changed files with 5 additions and 0 deletions

View File

@ -678,7 +678,12 @@ void R_ExecuteSetViewSize(void)
fov = FixedAngle(cv_fov.value/2) + ANGLE_90;
fovtan = FINETANGENT(fov >> ANGLETOFINESHIFT);
if (splitscreen == 1) // Splitscreen FOV should be adjusted to maintain expected vertical view
{
// fovtan needs to be capped, otherwise high base fov values may cause software to have weird looking stuff to the sides of the screen -Lat'
fovtan = 17*fovtan/10;
if (fovtan > 121417)
fovtan = 121417; // fovtan's value at 95 fov, beyond that it looks weird.
}
projection = projectiony = FixedDiv(centerxfrac, fovtan);