Skip to content

Commit

Permalink
Fix grenade ammo weaponbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha committed Jan 22, 2024
1 parent 4b49f63 commit b8f2ba3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regamedll/dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,11 @@ int CBasePlayerWeapon::ExtractClipAmmo(CBasePlayerWeapon *pWeapon)
if (m_iClip == WEAPON_NOCLIP)
{
// guns with no clips always come empty if they are second-hand
#ifdef REGAMEDLL_FIXES
iAmmo = IsGrenadeWeapon(m_iId) ? 1 : 0;
#else
iAmmo = 0;
#endif
}
else
{
Expand Down

0 comments on commit b8f2ba3

Please sign in to comment.