Skip to content

Commit

Permalink
Fix issue where quick weapon switching will result into losing curren…
Browse files Browse the repository at this point in the history
…t clip ammo
  • Loading branch information
MadDeCoDeR committed Jun 17, 2024
1 parent 7417388 commit 57c0c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/d3xp/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5790,7 +5790,7 @@ void idPlayer::Weapon_Combat()
}

// update our ammo clip in our inventory
if( ( currentWeapon >= 0 ) && ( currentWeapon < MAX_WEAPONS ) )
if( ( currentWeapon >= 0 ) && ( currentWeapon < MAX_WEAPONS ) && gameLocal->time > weaponSwitchTime)
{
inventory.SetClipAmmoForWeapon( currentWeapon, weapon.GetEntity()->AmmoInClip() );
}
Expand Down

0 comments on commit 57c0c9e

Please sign in to comment.