Merge pull request #60 from pac85/master

Fix sniper FOV bug
This commit is contained in:
ptitSeb 2022-12-30 16:15:30 +01:00 committed by GitHub
commit d7d1d80ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2397,7 +2397,7 @@ functions:
aFOV = 90.0f;
}
// 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,
((CPlayerWeapons&)*m_penWeapons).m_fSniperFOV,