- Blood: Fix lost accounting of target sprite angle in actCheckFlares().

This commit is contained in:
Mitchell Richters 2022-10-10 10:51:05 +11:00 committed by Christoph Oelckers
parent a8f7b3f6fe
commit a739928d29

View file

@ -6139,7 +6139,7 @@ void actCheckFlares()
if (target->hasX() && target->xspr.health > 0)
{
DVector3 pos = target->spr.pos;
pos.XY() += actor->xspr.goalAng.ToVector() * target->spr.clipdist * 2 * inttoworld;
pos.XY() += (actor->xspr.goalAng + target->spr.angle).ToVector() * target->spr.clipdist * 2 * inttoworld;
pos.Z += actor->xspr.TargetPos.Z;
SetActor(actor, pos);
actor->vel = target->vel;