mp_infinite_ammo 1: Fixed grenade throw

This commit is contained in:
s1lent 2019-09-08 22:28:23 +07:00
parent 8ec88f804d
commit 29a94ddbb8
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -835,7 +835,7 @@ void CBasePlayerWeapon::HandleInfiniteAmmo()
if (!nInfiniteAmmo) if (!nInfiniteAmmo)
nInfiniteAmmo = static_cast<int>(infiniteAmmo.value); nInfiniteAmmo = static_cast<int>(infiniteAmmo.value);
if (nInfiniteAmmo == WPNMODE_INFINITE_CLIP) if (nInfiniteAmmo == WPNMODE_INFINITE_CLIP && !IsGrenadeWeapon(m_iId))
{ {
m_iClip = iMaxClip(); m_iClip = iMaxClip();
} }