mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Rednukem: WW2GI weapon code fixes
This commit is contained in:
parent
88eacbcc1b
commit
f2b98f9abc
1 changed files with 3 additions and 2 deletions
|
@ -5018,6 +5018,7 @@ static void P_ProcessWeapon(int playerNum)
|
|||
case PISTOL_WEAPON__STATIC:
|
||||
if (pPlayer->ammo_amount[PISTOL_WEAPON] > 0)
|
||||
{
|
||||
if (!WW2GI)
|
||||
pPlayer->ammo_amount[PISTOL_WEAPON]--;
|
||||
(*weaponFrame) = 1;
|
||||
if (WW2GI && PWEAPON(playerNum, pPlayer->curr_weapon, InitialSound) > 0)
|
||||
|
@ -5875,7 +5876,7 @@ static void P_ProcessWeapon(int playerNum)
|
|||
|
||||
if (PWEAPON(playerNum, pPlayer->curr_weapon, Flags) & WEAPON_CHECKATRELOAD)
|
||||
{
|
||||
if (*weaponFrame >= PWEAPON(playerNum, pPlayer->curr_weapon, Reload))
|
||||
if (*weaponFrame == PWEAPON(playerNum, pPlayer->curr_weapon, Reload))
|
||||
P_CheckWeapon(pPlayer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue