From 7a21e06bec49f3aac5e9f0d2db410afcbd4cf38a Mon Sep 17 00:00:00 2001 From: Latapostrophe Date: Sun, 1 Sep 2019 16:54:25 +0200 Subject: [PATCH] cap splitscreen fov for 2p splits --- src/r_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/r_main.c b/src/r_main.c index 358a24bb..3a2bbe37 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -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);