fix mbf21 A_ConsumeAmmo taking 0 ammo instead of 1 if ammopershot field not set (need to amend the spec for this, argh)

This commit is contained in:
Xaser Acheron 2022-01-12 23:07:37 -06:00 committed by Christoph Oelckers
parent 00d4442fc8
commit 25f28c4b50
2 changed files with 2 additions and 0 deletions

View file

@ -943,6 +943,7 @@ xx(A_FirePlasma)
xx(A_FireBFG)
xx(A_FireOldBFG)
xx(A_FireRailgun)
xx(A_ConsumeAmmo)
// color channels
xx(a)

View file

@ -237,6 +237,7 @@ static AmmoPerAttack AmmoPerAttacks[] = {
{ NAME_A_FireBFG, -1}, // uses deh.BFGCells
{ NAME_A_FireOldBFG, 1},
{ NAME_A_FireRailgun, 1},
{ NAME_A_ConsumeAmmo, 1}, // MBF21
{ NAME_None, 0}
};