Fix sniper FOV bug

This commit is contained in:
antonino 2022-12-30 14:39:23 +01:00
parent 01c14d2ac9
commit 3ef902a04a

View File

@ -2397,7 +2397,7 @@ functions:
aFOV = 90.0f; aFOV = 90.0f;
} }
// if sniper active // if sniper active
if (((CPlayerWeapons&)*m_penWeapons).m_iCurrentWeapon==WEAPON_SNIPER) if (((CPlayerWeapons&)*m_penWeapons).m_iCurrentWeapon==WEAPON_SNIPER && ((CPlayerWeapons&)*m_penWeapons).m_bSniping)
{ {
aFOV = Lerp(((CPlayerWeapons&)*m_penWeapons).m_fSniperFOVlast, aFOV = Lerp(((CPlayerWeapons&)*m_penWeapons).m_fSniperFOVlast,
((CPlayerWeapons&)*m_penWeapons).m_fSniperFOV, ((CPlayerWeapons&)*m_penWeapons).m_fSniperFOV,