Fix for A_ConnectToGround on gravflipped objects, courtesy of toaster.

This commit is contained in:
sphere 2019-10-13 14:41:17 +02:00
parent 4b965fe43b
commit 636760760f

View file

@ -12292,9 +12292,6 @@ void A_ConnectToGround(mobj_t *actor)
if (!(workh = FixedMul(mobjinfo[locvar1].height, actor->scale))) if (!(workh = FixedMul(mobjinfo[locvar1].height, actor->scale)))
return; return;
if (actor->flags2 & MF2_OBJECTFLIP)
workz -= workh;
ang = actor->angle + ANGLE_45; ang = actor->angle + ANGLE_45;
while (dir*workz < 0) while (dir*workz < 0)
{ {