[Blood] Fix self collisions for lifeleech projectiles

This commit is contained in:
carnivoroussociety 2021-11-27 21:21:43 +11:00 committed by Christoph Oelckers
parent 958d004119
commit 61cafc7d57

View file

@ -261,6 +261,8 @@ void LifeLeechOperate(DBloodActor* actor, EVENT event)
pXSprite->stateTimer = 1;
evPostActor(actor, t2, kCallbackLeechStateTimer);
pXSprite->data3 = ClipLow(pXSprite->data3-1, 0);
if (!VanillaMode()) // disable collisions so lifeleech doesn't do that weird bobbing
missile->s().cstat &= ~CSTAT_SPRITE_BLOCK_ALL;
}
pSprite->ang = angBak;
}