- Duke (RRRA): Fix alt weapon slot for CHICKEN_WEAPON and CROSSBOW_WEAPON.

* Fixes #440.
This commit is contained in:
Mitchell Richters 2021-06-24 18:56:12 +10:00
parent 39983f8144
commit b015bc0685

View file

@ -1021,7 +1021,7 @@ void selectweapon_r(int snum, int weap)
j = KNEE_WEAPON; j = KNEE_WEAPON;
p->subweapon = 0; p->subweapon = 0;
break; break;
case DYNAMITE_WEAPON: case CROSSBOW_WEAPON:
if (p->ammo_amount[CHICKEN_WEAPON] > 0 && isRRRA()) if (p->ammo_amount[CHICKEN_WEAPON] > 0 && isRRRA())
{ {
j = CHICKEN_WEAPON; j = CHICKEN_WEAPON;
@ -1029,9 +1029,9 @@ void selectweapon_r(int snum, int weap)
} }
break; break;
case CHICKEN_WEAPON: case CHICKEN_WEAPON:
if (p->ammo_amount[DYNAMITE_WEAPON] > 0) if (p->ammo_amount[CROSSBOW_WEAPON] > 0)
{ {
j = DYNAMITE_WEAPON; j = CROSSBOW_WEAPON;
p->subweapon = 0; p->subweapon = 0;
} }
break; break;