From 599fa7cfd1429bd8775c6540deb60be84088b5e9 Mon Sep 17 00:00:00 2001 From: Leonard2 Date: Fri, 27 May 2016 22:31:18 +0200 Subject: [PATCH] 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 --- src/p_pspr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index da07e8004..9b9e5919c 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -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; }