mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- pass radial damage inflictor through event struct
This commit is contained in:
parent
a09f2d8a51
commit
2a28908b1a
2 changed files with 3 additions and 1 deletions
|
@ -454,6 +454,7 @@ struct RunListEvent
|
|||
|
||||
int nRadialDamage; // Radial damage needs a bit more info.
|
||||
int nDamageRadius;
|
||||
DExhumedActor* pRadialActor;
|
||||
};
|
||||
|
||||
struct ExhumedAI
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue