Fixed: the strife firehands were interpolated if a mod used the layer before them

The flags were also already reset, no need to do it twice
This commit is contained in:
Leonard2 2016-06-18 09:46:55 +02:00
commit 3ea70980f9
2 changed files with 5 additions and 4 deletions

View file

@ -352,10 +352,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_ItBurnsItBurns)
if (self->player != nullptr && self->player->mo == self)
{
DPSprite *psp = self->player->GetPSprite(PSP_STRIFEHANDS);
psp->Flags &= PSPF_ADDWEAPON | PSPF_ADDBOB;
psp->y = WEAPONTOP;
psp->SetState(self->FindState("FireHands"));
P_SetPsprite(self->player, PSP_STRIFEHANDS, self->FindState("FireHands"));
self->player->ReadyWeapon = nullptr;
self->player->PendingWeapon = WP_NOCHANGE;