- Blood: Fix bad cherry pick in bcd2d82bc7.

This commit is contained in:
Mitchell Richters 2023-01-02 19:33:51 +11:00
parent 483cec5bdd
commit 30cacb1a70

View file

@ -2166,7 +2166,7 @@ static int WeaponFindLoaded(PLAYER* pPlayer, int* a2)
int processSprayCan(PLAYER* pPlayer) int processSprayCan(PLAYER* pPlayer)
{ {
const char bUseShootAsThrow = !VanillaMode() && pPlayer->input.buttonFlags.shoot; const char bUseShootAsThrow = !VanillaMode() && (pPlayer->input.actions & SB_FIRE);
switch (pPlayer->weaponState) switch (pPlayer->weaponState)
{ {
case 5: case 5:
@ -2211,7 +2211,7 @@ int processSprayCan(PLAYER* pPlayer)
static bool processTNT(PLAYER* pPlayer) static bool processTNT(PLAYER* pPlayer)
{ {
const char bUseShootAsThrow = !VanillaMode() && pPlayer->input.buttonFlags.shoot; const char bUseShootAsThrow = !VanillaMode() && (pPlayer->input.actions & SB_FIRE);
switch (pPlayer->weaponState) switch (pPlayer->weaponState)
{ {
case 4: case 4: