mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-11 20:31:06 +00:00
cap splitscreen fov for 2p splits
This commit is contained in:
parent
eb8cb12b8f
commit
7a21e06bec
1 changed files with 5 additions and 0 deletions
|
@ -678,7 +678,12 @@ void R_ExecuteSetViewSize(void)
|
||||||
fov = FixedAngle(cv_fov.value/2) + ANGLE_90;
|
fov = FixedAngle(cv_fov.value/2) + ANGLE_90;
|
||||||
fovtan = FINETANGENT(fov >> ANGLETOFINESHIFT);
|
fovtan = FINETANGENT(fov >> ANGLETOFINESHIFT);
|
||||||
if (splitscreen == 1) // Splitscreen FOV should be adjusted to maintain expected vertical view
|
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;
|
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);
|
projection = projectiony = FixedDiv(centerxfrac, fovtan);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue