From 736c6abd8d5e322816301b11b1d7cb8ec45eca66 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 19 Apr 2006 01:27:34 +0000 Subject: [PATCH] Tiny little fix to weapon switching behavior git-svn-id: https://svn.eduke32.com/eduke32@65 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/actors.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 176d42505..5ebae2c58 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -4523,7 +4523,8 @@ DETONATEB: if( ps[p].gotweapon[HANDBOMB_WEAPON] == 0 || s->owner == ps[p].i ) { /* addweapon(&ps[p],HANDBOMB_WEAPON); */ - if (!(ps[p].weaponswitch & 1)) addweaponnoswitch(&ps[p],HANDBOMB_WEAPON); + if (!(ps[p].weaponswitch & 1) && *aplWeaponWorksLike[ps[p].curr_weapon] != HANDREMOTE_WEAPON) + addweaponnoswitch(&ps[p],HANDBOMB_WEAPON); else addweapon( &ps[p],HANDBOMB_WEAPON); }