mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
Fixed: it was no longer possible to set the flash state in the very first
weapon's state This was due to an oversight in my first commit
This commit is contained in:
parent
e6d89b9f71
commit
599fa7cfd1
1 changed files with 1 additions and 1 deletions
|
@ -372,10 +372,10 @@ void P_BringUpWeapon (player_t *player)
|
|||
player->ReadyWeapon = weapon;
|
||||
psweapon->y = player->cheats & CF_INSTANTWEAPSWITCH
|
||||
? WEAPONTOP : WEAPONBOTTOM;
|
||||
psweapon->SetState(newstate);
|
||||
// make sure that the previous weapon's flash state is terminated.
|
||||
// When coming here from a weapon drop it may still be active.
|
||||
P_SetPsprite(player, ps_flash, nullptr);
|
||||
psweapon->SetState(newstate);
|
||||
player->mo->weaponspecial = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue