Fixed unset inflictor in WorldThingDamaged event

https://forum.zdoom.org/viewtopic.php?t=57527
This commit is contained in:
alexey.lysiuk 2017-08-09 16:16:33 +03:00
parent cdf79f0041
commit ef9c3b4f54

View file

@ -762,6 +762,7 @@ void DStaticEventHandler::WorldThingDamaged(AActor* actor, AActor* inflictor, AA
return; return;
FWorldEvent e = E_SetupWorldEvent(); FWorldEvent e = E_SetupWorldEvent();
e.Thing = actor; e.Thing = actor;
e.Inflictor = inflictor;
e.Damage = damage; e.Damage = damage;
e.DamageSource = source; e.DamageSource = source;
e.DamageType = mod; e.DamageType = mod;