From 593bbe10efc429d9615aebce0c38cb0aba03092f Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 17 Jul 2021 00:11:37 +1000 Subject: [PATCH] - Exhumed: Ensure `FillWeapons()` recalculates the pistol clip amount after filling. * When cheating, this wasn't done which lead to the clip having 6 rounds when via modulo it should have only had 3. --- source/games/exhumed/src/gun.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/games/exhumed/src/gun.cpp b/source/games/exhumed/src/gun.cpp index 3fa331ca6..e88bb8a0f 100644 --- a/source/games/exhumed/src/gun.cpp +++ b/source/games/exhumed/src/gun.cpp @@ -103,6 +103,9 @@ void FillWeapons(short nPlayer) } } + // Reset pistol's clip amount. + nPistolClip[nPlayer] = PlayerList[nPlayer].nAmmo[kWeaponPistol] % 6; + CheckClip(nPlayer); }