mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-08 11:38:01 +03:00
Check if the ent is inside the hit entity (this fixes trigger_hurt issues in mp_stadt_dm
This commit is contained in:
parent
4de1b7c73b
commit
bc81fe78b2
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@ void G_TouchTriggers(Entity *ent)
|
|||
continue;
|
||||
}
|
||||
|
||||
// Added in 2.0
|
||||
// check if the ent is inside edict
|
||||
if (hit->r.bmodel && gi.HitEntity(ent->edict, hit)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
assert(hit->entity);
|
||||
|
||||
ev = new Event(EV_Touch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue