Fixed Canarivore gas going through the floor

This commit is contained in:
MascaraSnake 2019-06-29 00:19:46 +02:00
parent 88dc34818e
commit 836d3d3186
2 changed files with 1 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}