SERVER: Fix Reloading on Max Ammo if clip isnt empty

This commit is contained in:
cypress 2023-11-06 11:41:56 -05:00 committed by GitHub
parent e8dc7028e4
commit c18c1c1261
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -546,7 +546,7 @@ void() PU_MaxAmmo =
}
// Force the player to reload if their mag is empty
if (players.weapons[0].weapon_magazine == 0 || players.weapons[0].weapon_magazine_left == 0) {
if (players.weapons[0].weapon_magazine == 0 || (IsDualWeapon(players.weapon) && players.weapons[0].weapon_magazine_left == 0)) {
tempe = self;
self = players;
W_Reload(S_BOTH);