mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- Duke/RR: Always ensure player's wantweaponfire
is reset to -1
after switching weapon.
* Fixes #333.
This commit is contained in:
parent
0bb0896985
commit
ec20f66eda
2 changed files with 2 additions and 0 deletions
|
@ -265,6 +265,7 @@ void addweapon_d(struct player_struct *p, int weapon)
|
|||
#else
|
||||
p->curr_weapon = weapon;
|
||||
#endif
|
||||
p->wantweaponfire = -1;
|
||||
|
||||
switch (weapon)
|
||||
{
|
||||
|
|
|
@ -185,6 +185,7 @@ void addweapon_r(struct player_struct* p, int weapon)
|
|||
|
||||
p->okickback_pic = p->kickback_pic = 0;
|
||||
p->curr_weapon = cw;
|
||||
p->wantweaponfire = -1;
|
||||
|
||||
switch (weapon)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue