WWII GI: Fix the chaingun replacement to always reload even if you continue holding down fire.

git-svn-id: https://svn.eduke32.com/eduke32@6871 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-05-02 07:13:01 +00:00
parent e9aa30ceee
commit b3bd2e686c

View file

@ -1946,6 +1946,13 @@ static void P_FireWeapon(int playerNum)
#endif // POLYMER #endif // POLYMER
pPlayer->visibility = 0; pPlayer->visibility = 0;
} }
if (/*!(PWEAPON(playerNum, p->curr_weapon, Flags) & WEAPON_CHECKATRELOAD) && */ pPlayer->reloading == 1 ||
(PWEAPON(playerNum, pPlayer->curr_weapon, Reload) > PWEAPON(playerNum, pPlayer->curr_weapon, TotalTime) && pPlayer->ammo_amount[pPlayer->curr_weapon] > 0
&& (PWEAPON(playerNum, pPlayer->curr_weapon, Clip)) && (((pPlayer->ammo_amount[pPlayer->curr_weapon]%(PWEAPON(playerNum, pPlayer->curr_weapon, Clip)))==0))))
{
pPlayer->kickback_pic = PWEAPON(playerNum, pPlayer->curr_weapon, TotalTime);
}
} }
static void P_DoWeaponSpawn(int playerNum) static void P_DoWeaponSpawn(int playerNum)