- Blood: fixed application of push velocity.

This commit is contained in:
Christoph Oelckers 2023-01-28 12:43:46 +01:00
parent 432021b8e7
commit dce0afe499

View file

@ -1452,7 +1452,7 @@ int ActionScan(PLAYER* pPlayer, HitInfo* out)
int nMass = getDudeInfo(hitactor->spr.type)->mass;
if (nMass)
{
hitactor->spr.pos += pos * (FixedToFloat<8>(0xccccc) / nMass);
hitactor->vel += pos * (FixedToFloat<10>(0xccccc) / nMass);
}
if (hitactor->xspr.Push && !hitactor->xspr.state && !hitactor->xspr.isTriggered)
trTriggerSprite(hitactor, kCmdSpritePush);