Don't stair jank in spectator mode

This commit is contained in:
James R 2021-04-11 20:19:38 -07:00
parent 81e43245a8
commit 92e61d82d9

View file

@ -2638,8 +2638,8 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
/* FIXME: slope step down (even up) has some false
positives, so just ignore them entirely. */
if (stairjank && !oldslope &&
!thing->standingslope && thing->player)
if (stairjank && !oldslope && !thing->standingslope &&
thing->player && !thing->player->spectator)
{
/* use a shorter sound if not two tics have passed
* since the last step */