Clamp FOV to prevent screen rotation #1033

This commit is contained in:
Chase Cooper 2026-03-09 20:37:43 -04:00
parent e6eafda90e
commit 8a48921558

View file

@ -395,6 +395,7 @@ float GameRenderer::getFov(float a, bool applyEffects)
fov += mc->options->fov * 40;
fov *= oFov[playerIdx] + (this->fov[playerIdx] - oFov[playerIdx]) * a;
}
fov = min(fov, 170.0f);
if (player->getHealth() <= 0)
{
float duration = player->deathTime + a;