mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
Fixed Canarivore gas going through the floor
This commit is contained in:
parent
88dc34818e
commit
836d3d3186
2 changed files with 1 additions and 1 deletions
|
@ -1702,6 +1702,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
|
||||
case MT_CANARIVORE_GAS:
|
||||
// if player and gas touch, attach gas to player (overriding any gas that already attached) and apply slowdown effect
|
||||
special->flags |= MF_NOGRAVITY|MF_NOCLIPHEIGHT;
|
||||
P_UnsetThingPosition(special);
|
||||
special->x = toucher->x - toucher->momx/2;
|
||||
special->y = toucher->y - toucher->momy/2;
|
||||
|
|
|
@ -8524,7 +8524,6 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
momz = abs(mobj->momz);
|
||||
if (R_PointToDist2(0, 0, mobj->momx, mobj->momy) < momz)
|
||||
P_InstaThrust(mobj, R_PointToAngle2(0, 0, mobj->momx, mobj->momy), momz);
|
||||
mobj->flags |= MF_NOGRAVITY|MF_NOCLIPHEIGHT;
|
||||
mobj->flags2 |= MF2_AMBUSH;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue