mirror of
https://github.com/etlegacy/etlegacy.git
synced 2025-05-22 23:54:51 +00:00
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:
parent
b41b3c965c
commit
01d245d8af
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue