- HitBreakSprite

This commit is contained in:
Christoph Oelckers 2021-10-31 18:54:02 +01:00
parent aa13619087
commit a69a45523f
3 changed files with 18 additions and 25 deletions

View file

@ -2591,7 +2591,7 @@ void DriveCrush(PLAYERp pp, int *x, int *y)
if (testpointinquad(sp->x, sp->y, x, y))
{
if (TEST(sp->extra, SPRX_BREAKABLE) && HitBreakSprite(actor->GetSpriteIndex(),0))
if (TEST(sp->extra, SPRX_BREAKABLE) && HitBreakSprite(actor, 0))
continue;
if (sp->statnum == STAT_MISSILE)