mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-24 19:52:08 +00:00
Green Snapper: Use TryMove instead of TeleportMove for the head, so it doesn't snap up to higher floors.
This commit is contained in:
parent
1e5682d4a2
commit
9809e15033
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue