From 4bdd3c809fb99b682986e9114033959752e31923 Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 30 Oct 2020 20:54:21 -0700 Subject: [PATCH] Major brother moment --- src/p_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_map.c b/src/p_map.c index bea4849dd..0b8c7f577 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -973,9 +973,9 @@ static boolean PIT_CheckThing(mobj_t *thing) if (tmthing->type == MT_FLOATINGITEM) { // see if it went over / under - if (tmthing->z > thing->z + thing->height) + if (tmthing->z - tmthing->height > thing->z + thing->height) return true; // overhead - if (tmthing->z + tmthing->height < thing->z - thing->height) // extended hitbox + if (tmthing->z + tmthing->height < thing->z) // extended hitbox return true; // underneath return K_FloatingItemCollide(tmthing, thing);