- fixed two bad scale checks in Blood's fat zombie.

This commit is contained in:
Christoph Oelckers 2022-10-06 00:54:56 +02:00
parent 6a3a811a42
commit 4a3ff0bd50

View file

@ -52,9 +52,9 @@ void zombfHackSeqCallback(int, DBloodActor* actor)
if (!actor->ValidateTarget(__FUNCTION__)) return;
auto target = actor->GetTarget();
DUDEINFO* pDudeInfo = getDudeInfo(actor->spr.type);
double height = pDudeInfo->eyeHeight * actor->spr.yrepeat * REPEAT_SCALE * 0.25;
double height = pDudeInfo->eyeHeight * actor->spr.ScaleY() * 0.25;
DUDEINFO* pDudeInfoT = getDudeInfo(target->spr.type);
double height2 = pDudeInfoT->eyeHeight * target->spr.yrepeat * REPEAT_SCALE * 0.25;
double height2 = pDudeInfoT->eyeHeight * target->spr.ScaleY() * 0.25;
actFireVector(actor, 0, 0, DVector3(actor->spr.angle.ToVector() * 64, height - height2), kVectorCleaver);
}