From bbc60e84242a6be9ec10e7279d978fd282f9761e Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 6 Oct 2020 16:31:28 +1100 Subject: [PATCH] - Duke: Ensure tripbomb's ammo_count decrements with use. * Note: Unsure whether `isWW2GI()` was meant to be inversed but do not believe so. Have removed check for now. * Fixes #104. --- source/games/duke/src/player_d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/player_d.cpp b/source/games/duke/src/player_d.cpp index c800a9cf2..a67f6ed35 100644 --- a/source/games/duke/src/player_d.cpp +++ b/source/games/duke/src/player_d.cpp @@ -961,7 +961,7 @@ void shoot_d(int i, int atwith) sprite[k].cstat = 16; hittype[k].temp_data[5] = sprite[k].ang = getangle(wall[hitwall].x - wall[wall[hitwall].point2].x, wall[hitwall].y - wall[wall[hitwall].point2].y) - 512; - if (isWW2GI() && p >= 0) + if (p >= 0) ps[p].ammo_amount[TRIPBOMB_WEAPON]--; }