From 1538ca7e86a8f645633d967014c72d25895e026d Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Sat, 24 Aug 2019 11:29:08 +0200 Subject: [PATCH] Green Snapper: Use TryMove instead of TeleportMove for the head, so it doesn't snap up to higher floors. --- src/p_enemy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index f33ce6810..1dc265676 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -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.