mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Clamp FOV to prevent screen rotation #1033
This commit is contained in:
parent
e6eafda90e
commit
8a48921558
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue