From 9a6a98ada9953c8ad02efa88afc4a0fcf9b17ba3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 24 Oct 2020 20:43:36 +0200 Subject: [PATCH] - RR: Picking up the crossbow should also enable the dynamite as a separate weapon. --- source/games/duke/src/actors_r.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/games/duke/src/actors_r.cpp b/source/games/duke/src/actors_r.cpp index afa766bc6..7ca23ec3d 100644 --- a/source/games/duke/src/actors_r.cpp +++ b/source/games/duke/src/actors_r.cpp @@ -128,6 +128,7 @@ void addweapon_r(struct player_struct* p, int weapon) else if (weapon == CROSSBOW_WEAPON) { p->gotweapon.Set(CHICKEN_WEAPON); + p->gotweapon.Set(DYNAMITE_WEAPON); } else if (weapon == SLINGBLADE_WEAPON) { @@ -155,6 +156,10 @@ void addweapon_r(struct player_struct* p, int weapon) p->ammo_amount[SLINGBLADE_WEAPON] = 50; } } + if (weapon == CROSSBOW_WEAPON) + { + p->gotweapon.Set(DYNAMITE_WEAPON); + } if (weapon != DYNAMITE_WEAPON) cw = weapon;