Skip to content

Commit

Permalink
Added reload condition to enhance conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
dystopm committed Sep 11, 2023
1 parent d4d3215 commit 252d9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4824,7 +4824,7 @@ int EXT_FUNC GetWeaponData(edict_t *pEdict, struct weapon_data_s *info)
item->iuser1 = weapon->m_iSwing;

#ifdef REGAMEDLL_FIXES
if (pPlayerItem == pPlayer->m_pActiveItem && weapon->m_iClip == II.iMaxClip)
if (pPlayerItem == pPlayer->m_pActiveItem && !weapon->m_fInReload && weapon->m_iClip == II.iMaxClip)
{
const WeaponInfoStruct *wpnInfo = GetDefaultWeaponInfo(II.iId);

Expand Down

0 comments on commit 252d9c1

Please sign in to comment.