mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 12:31:32 +00:00
Add collision check for flipped water drops
This commit is contained in:
parent
e8c83f48be
commit
719ceb0586
1 changed files with 2 additions and 1 deletions
|
@ -7740,7 +7740,8 @@ static void P_MobjSceneryThink(mobj_t *mobj)
|
|||
break;
|
||||
case MT_WATERDROP:
|
||||
P_SceneryCheckWater(mobj);
|
||||
if ((mobj->z <= mobj->floorz || mobj->z <= mobj->watertop)
|
||||
if (((!(mobj->eflags & MFE_VERTICALFLIP) && (mobj->z <= mobj->floorz || mobj->z <= mobj->watertop))
|
||||
|| (mobj->eflags & MFE_VERTICALFLIP && mobj->z + mobj->height >= mobj->ceilingz))
|
||||
&& mobj->health > 0)
|
||||
{
|
||||
mobj->health = 0;
|
||||
|
|
Loading…
Reference in a new issue