mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
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:
parent
b8e1bead0a
commit
3ea70980f9
2 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -229,6 +229,10 @@ DPSprite *player_t::GetPSprite(PSPLayers layer)
|
|||
{
|
||||
pspr->Flags = (PSPF_ADDWEAPON|PSPF_ADDBOB|PSPF_CVARFAST|PSPF_POWDOUBLE);
|
||||
}
|
||||
if (layer == PSP_STRIFEHANDS)
|
||||
{
|
||||
pspr->y = WEAPONTOP;
|
||||
}
|
||||
|
||||
pspr->oldx = pspr->x;
|
||||
pspr->oldy = pspr->y;
|
||||
|
|
Loading…
Reference in a new issue