mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
P_CheckDeathPitCollide: handle slopes
This commit is contained in:
parent
b71a8bc5b4
commit
0bfee3176f
1 changed files with 2 additions and 2 deletions
|
|
@ -2195,9 +2195,9 @@ boolean P_CheckDeathPitCollide(mobj_t *mo)
|
||||||
const sectorflags_t flags = mo->subsector->sector->flags;
|
const sectorflags_t flags = mo->subsector->sector->flags;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
(mo->z <= mo->subsector->sector->floorheight
|
(mo->z <= mo->floorz
|
||||||
&& ((flags & MSF_TRIGGERSPECIAL_HEADBUMP) || !flipped) && (flags & MSF_FLIPSPECIAL_FLOOR))
|
&& ((flags & MSF_TRIGGERSPECIAL_HEADBUMP) || !flipped) && (flags & MSF_FLIPSPECIAL_FLOOR))
|
||||||
|| (mo->z + mo->height >= mo->subsector->sector->ceilingheight
|
|| (mo->z + mo->height >= mo->ceilingz
|
||||||
&& ((flags & MSF_TRIGGERSPECIAL_HEADBUMP) || flipped) && (flags & MSF_FLIPSPECIAL_CEILING))
|
&& ((flags & MSF_TRIGGERSPECIAL_HEADBUMP) || flipped) && (flags & MSF_FLIPSPECIAL_CEILING))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue