Tiny little fix to weapon switching behavior

git-svn-id: https://svn.eduke32.com/eduke32@65 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-04-19 01:27:34 +00:00
parent de75701da5
commit 736c6abd8d

View file

@ -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);
}