- pass radial damage inflictor through event struct

This commit is contained in:
Christoph Oelckers 2021-10-27 00:30:57 +02:00
parent a09f2d8a51
commit 2a28908b1a
2 changed files with 3 additions and 1 deletions

View file

@ -454,6 +454,7 @@ struct RunListEvent
int nRadialDamage; // Radial damage needs a bit more info.
int nDamageRadius;
DExhumedActor* pRadialActor;
};
struct ExhumedAI

View file

@ -1779,7 +1779,8 @@ void runlist_DispatchEvent(ExhumedAI* ai, int nObject, int nMessage, int nDamage
case EMessageType::RadialDamage:
ev.nRadialDamage = nRadialDamage;
ev.nDamageRadius = nDamageRadius;
ev.pOtherActor = &exhumedActors[nRadialSpr];
ev.pOtherActor = &exhumedActors[nObject];
ev.pRadialActor = &exhumedActors[nRadialSpr];
ai->RadialDamage(&ev);
break;
}