mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-01 08:51:21 +00:00
Disable stairjank terrain and offroad rumble at 0 speed
This commit is contained in:
parent
290383364f
commit
3b425667e5
2 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue