Skip to content

Commit

Permalink
fix mbf21 A_ConsumeAmmo taking 0 ammo instead of 1 if ammopershot fie…
Browse files Browse the repository at this point in the history
…ld not set (need to amend the spec for this, argh)
  • Loading branch information
XaserAcheron authored and coelckers committed Jan 18, 2022
1 parent 00d4442 commit 25f28c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/engine/namedef.h
Expand Up @@ -943,6 +943,7 @@ xx(A_FirePlasma)
xx(A_FireBFG)
xx(A_FireOldBFG)
xx(A_FireRailgun)
xx(A_ConsumeAmmo)

// color channels
xx(a)
Expand Down
1 change: 1 addition & 0 deletions src/gamedata/d_dehacked.cpp
Expand Up @@ -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}
};

Expand Down

0 comments on commit 25f28c4

Please sign in to comment.