- Blood: fixed Life Leech no longer gettable after having fired.

This was the direct result of dumb use of two pointers to different parts of the same objects.
This commit is contained in:
Christoph Oelckers 2022-01-01 09:31:57 +01:00
parent dcd006d34b
commit 3e21db19be

View file

@ -5220,10 +5220,13 @@ int MoveMissile(DBloodActor* actor)
auto Owner = actor->GetOwner();
int cliptype = -1;
ESpriteFlags bakCstat = 0;
if (Owner && Owner->IsDudeActor())
if (Owner)
{
bakCstat = Owner->spr.cstat;
Owner->spr.cstat &= ~CSTAT_SPRITE_BLOCK_ALL;
if (Owner->IsDudeActor())
{
Owner->spr.cstat &= ~CSTAT_SPRITE_BLOCK_ALL;
}
}
gHitInfo.clearObj();
if (actor->spr.type == kMissileFlameSpray) actAirDrag(actor, 0x1000);