cgame: fix viewmodel fov calculation

Ever since we dropped minimum FOV from 90 to 75, our viewmodel FOV has been wrong. Viewmodel is supposed to drop lower when you raise your FOV from minimum, but this check was never updated to match the new 75 minimum. This meant that while the new minimum low value 75 would roughly match VET minimum 90, the viewmodel FOV was only correct when you had 75 FOV, every other value was drawing viewmodel incorrectly because the calculation got out of sync as soon as we raised FOV over 75, since we only started adjusting after FOV was > 90.
This commit is contained in:
Aciz 2022-02-04 17:33:01 +02:00 committed by GitHub
parent b41b3c965c
commit 01d245d8af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3830,9 +3830,9 @@ void CG_AddViewWeapon(playerState_t *ps)
} }
// drop gun lower at higher fov // drop gun lower at higher fov
if (cg_fov.value > 90) if (cg_fov.value > 75)
{ {
fovOffset = -0.2f * (cg_fov.value - 90); fovOffset = -0.2f * (cg_fov.value - 75);
} }
else else
{ {