From ff7a70697697f39cbcef85825f52225870620bcf Mon Sep 17 00:00:00 2001 From: Latapostrophe Date: Mon, 11 Nov 2019 00:24:06 +0100 Subject: [PATCH] fix orbiting items not protecting you against your own items --- src/p_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_map.c b/src/p_map.c index d9b72365..4664703d 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -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)