- handle all hu = itActor.u();

This commit is contained in:
Christoph Oelckers 2021-12-25 20:26:31 +01:00
parent 86704b264e
commit 91a355a82e
3 changed files with 16 additions and 35 deletions

View file

@ -5861,8 +5861,6 @@ void DoPlayerDeathCheckKick(PLAYERp pp)
SWStatIterator it(StatDamageList[stat]);
while (auto itActor = it.Next())
{
auto hu = itActor->u();
if (itActor == pp->Actor())
break;
@ -5872,7 +5870,7 @@ void DoPlayerDeathCheckKick(PLAYERp pp)
DISTANCE(itActor->spr.pos.X, itActor->spr.pos.Y, actor->spr.pos.X, actor->spr.pos.Y, dist, a, b, c);
if (unsigned(dist) < hu->Radius + 100)
if (unsigned(dist) < itActor->user.Radius + 100)
{
pp->KillerActor = itActor;