mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-28 18:05:14 +00:00
Merge pull request #669 from qwasdrizzel/main
Fix crash when FOV is equal to zero
This commit is contained in:
commit
6df8089003
|
|
@ -393,6 +393,8 @@ float GameRenderer::getFov(float a, bool applyEffects)
|
|||
shared_ptr<LocalPlayer> player = dynamic_pointer_cast<LocalPlayer>(mc->cameraTargetPlayer);
|
||||
int playerIdx = player ? player->GetXboxPad() : 0;
|
||||
float fov = m_fov;//70;
|
||||
if (fov < 1) fov = 1; // Crash fix
|
||||
|
||||
if (applyEffects)
|
||||
{
|
||||
fov += mc->options->fov * 40;
|
||||
|
|
|
|||
Loading…
Reference in a new issue