Green Snapper: Use TryMove instead of TeleportMove for the head, so it doesn't snap up to higher floors.

This commit is contained in:
MascaraSnake 2019-08-24 11:29:08 +02:00
parent 1e5682d4a2
commit 9809e15033

View file

@ -13325,7 +13325,8 @@ static void P_SnapperLegPlace(mobj_t *mo)
fixed_t rad = mo->radius;
INT32 necklen = (32*(mo->info->reactiontime - mo->reactiontime))/mo->info->reactiontime; // Not in FU
P_TeleportMove(seg, mo->x + FixedMul(c, rad) + necklen*c, mo->y + FixedMul(s, rad) + necklen*s, mo->z + mo->height/3);
P_TryMove(seg, mo->x + FixedMul(c, rad) + necklen*c, mo->y + FixedMul(s, rad) + necklen*s, true);
seg->z = mo->z + mo->height/3;
seg->angle = a;
// Move as many legs as available.