Comment out FOV modification line, since the FOV is stored and doesn't need to be adjusted. (#1248)
Some checks are pending
MSBuild Debug Test / Build Windows64 (DEBUG) (push) Waiting to run
Docker Nightly Dedicated Server / Build Dedicated Server Runtime (push) Waiting to run
Docker Nightly Dedicated Server / Build and Push Docker Image (push) Blocked by required conditions
Nightly Releases / Build Windows64 (push) Waiting to run

I guess this line was just the games way of applying modifications the player made to the FOV. But since whenever ago someone changed the way the FOV stuff is saved, so this line just adds the difference *again* causing issues when the FOV is set above 70. Setting your FOV to 80 actually sets it to 90, and setting it to 110 actually sets it to 150.
This commit is contained in:
ZorpLemon 2026-03-15 18:14:15 -05:00 committed by GitHub
parent 0b0d74a638
commit 43d520f692
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -392,7 +392,7 @@ float GameRenderer::getFov(float a, bool applyEffects)
float fov = m_fov;//70;
if (applyEffects)
{
fov += mc->options->fov * 40;
//fov += mc->options->fov * 40;
fov *= oFov[playerIdx] + (this->fov[playerIdx] - oFov[playerIdx]) * a;
}
if (player->getHealth() <= 0)