fix orbiting items not protecting you against your own items

This commit is contained in:
Latapostrophe 2019-11-11 00:24:06 +01:00
parent eb8cb12b8f
commit ff7a706976
1 changed files with 1 additions and 1 deletions

View File

@ -732,7 +732,7 @@ static boolean PIT_CheckThing(mobj_t *thing)
if (tmthing->z + tmthing->height < thing->z)
return true; // underneath
if (((tmthing->target == thing) || (tmthing->target == thing->target)) && (tmthing->threshold > 0 || (thing->type != MT_PLAYER && thing->threshold > 0)))
if (((tmthing->target == thing) || (tmthing->target == thing->target)) && ((tmthing->threshold > 0 && thing->type == MT_PLAYER) || (thing->type != MT_PLAYER && thing->threshold > 0)))
return true;
if (tmthing->health <= 0 || thing->health <= 0)