mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 03:58:14 +03:00
Fixed target trigger being triggered by itself
This commit is contained in:
parent
abfdac59ba
commit
373a35acf0
1 changed files with 1 additions and 1 deletions
|
@ -6923,7 +6923,7 @@ void DrivableVehicle::Killed(Event *ev)
|
||||||
if (name && strcmp(name, "")) {
|
if (name && strcmp(name, "")) {
|
||||||
for (ent = G_FindTarget(NULL, name); ent; ent = G_FindTarget(ent, name)) {
|
for (ent = G_FindTarget(NULL, name); ent; ent = G_FindTarget(ent, name)) {
|
||||||
event = new Event(EV_Activate);
|
event = new Event(EV_Activate);
|
||||||
event->AddEntity(ent);
|
event->AddEntity(attacker);
|
||||||
ent->ProcessEvent(event);
|
ent->ProcessEvent(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue