- Duke/RR: Always ensure player's wantweaponfire is reset to -1 after switching weapon.

* Fixes #333.
This commit is contained in:
Mitchell Richters 2021-07-17 12:12:12 +10:00
parent 0bb0896985
commit ec20f66eda
2 changed files with 2 additions and 0 deletions

View file

@ -265,6 +265,7 @@ void addweapon_d(struct player_struct *p, int weapon)
#else #else
p->curr_weapon = weapon; p->curr_weapon = weapon;
#endif #endif
p->wantweaponfire = -1;
switch (weapon) switch (weapon)
{ {

View file

@ -185,6 +185,7 @@ void addweapon_r(struct player_struct* p, int weapon)
p->okickback_pic = p->kickback_pic = 0; p->okickback_pic = p->kickback_pic = 0;
p->curr_weapon = cw; p->curr_weapon = cw;
p->wantweaponfire = -1;
switch (weapon) switch (weapon)
{ {