Disable stairjank terrain and offroad rumble at 0 speed

This commit is contained in:
AJ Martinez 2023-12-28 23:47:03 -07:00
parent 290383364f
commit 3b425667e5
2 changed files with 2 additions and 2 deletions

View file

@ -614,7 +614,7 @@ void K_ProcessTerrainEffect(mobj_t *mo)
}
// Bumpy floor
if (terrain->flags & TRF_STAIRJANK)
if (terrain->flags & TRF_STAIRJANK && player->speed != 0)
{
/* use a shorter sound if not two tics have passed
* since the last step */

View file

@ -745,7 +745,7 @@ static inline void P_DeviceRumbleTick(void)
low = high = 65536 / (3+player->numsneakers);
}
else if (((player->boostpower < FRACUNIT) || (player->stairjank > 8))
&& P_IsObjectOnGround(player->mo))
&& P_IsObjectOnGround(player->mo) && player->speed != 0)
{
low = high = 65536 / 32;
}