Allow retrieval of the custom Crush state in WorldThingGround

This commit is contained in:
nashmuhandes 2020-09-30 09:56:36 +08:00 committed by Christoph Oelckers
commit 6e692e5571
4 changed files with 13 additions and 8 deletions

View file

@ -1204,7 +1204,7 @@ bool AActor::Grind(bool items)
S_Sound (this, CHAN_BODY, 0, "misc/fallingsplat", 1, ATTN_IDLE);
Translation = BloodTranslation;
}
Level->localEventManager->WorldThingGround(this);
Level->localEventManager->WorldThingGround(this, state);
return false;
}
if (!(flags & MF_NOBLOOD))
@ -1247,7 +1247,7 @@ bool AActor::Grind(bool items)
gib->Translation = BloodTranslation;
}
S_Sound (this, CHAN_BODY, 0, "misc/fallingsplat", 1, ATTN_IDLE);
Level->localEventManager->WorldThingGround(this);
Level->localEventManager->WorldThingGround(this, nullptr);
}
if (flags & MF_ICECORPSE)
{