From 6940384625ea4b0f81105b1b7401a5283bdf8ad8 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 17 Jul 2021 14:57:00 +1000 Subject: [PATCH] - Exhumed: Move pistol clip/magazine recalculation code that was added in 593bbe10efc429d9615aebce0c38cb0aba03092f from `FillWeapons()` to `CheckClip()`. --- source/games/exhumed/src/gun.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/exhumed/src/gun.cpp b/source/games/exhumed/src/gun.cpp index 3ba84f3ca..f84a3a65a 100644 --- a/source/games/exhumed/src/gun.cpp +++ b/source/games/exhumed/src/gun.cpp @@ -103,9 +103,6 @@ void FillWeapons(short nPlayer) } } - // Reset pistol's clip amount. - nPistolClip[nPlayer] = PlayerList[nPlayer].nAmmo[kWeaponPistol] % 6; - CheckClip(nPlayer); } @@ -317,6 +314,9 @@ void CheckClip(short nPlayer) nPlayerClip[nPlayer] = 100; } } + + // Reset pistol's clip amount. + nPistolClip[nPlayer] = PlayerList[nPlayer].nAmmo[kWeaponPistol] % 6; } void MoveWeapons(short nPlayer)