mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LCE-Revelations.git
synced 2026-09-23 19:40:50 +00:00
Fix crash by ensuring FOV is not less than 1
This commit is contained in:
@@ -389,6 +389,8 @@ float GameRenderer::getFov(float a, bool applyEffects)
|
|||||||
shared_ptr<LocalPlayer> player = dynamic_pointer_cast<LocalPlayer>(mc->cameraTargetPlayer);
|
shared_ptr<LocalPlayer> player = dynamic_pointer_cast<LocalPlayer>(mc->cameraTargetPlayer);
|
||||||
int playerIdx = player ? player->GetXboxPad() : 0;
|
int playerIdx = player ? player->GetXboxPad() : 0;
|
||||||
float fov = m_fov;//70;
|
float fov = m_fov;//70;
|
||||||
|
if (fov < 1) fov = 0.01; // Crash fix
|
||||||
|
|
||||||
if (applyEffects)
|
if (applyEffects)
|
||||||
{
|
{
|
||||||
fov += mc->options->fov * 40;
|
fov += mc->options->fov * 40;
|
||||||
|
|||||||
Reference in New Issue
Block a user