mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-31 02:37:15 +00:00
Major brother moment
This commit is contained in:
parent
84f027d244
commit
4bdd3c809f
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue