mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Merge branch 'fix-postrace-rumble' into 'master'
Fix gamepad rumble freezing when it should stop (resolves #955) Closes #955 See merge request KartKrew/Kart!1857
This commit is contained in:
commit
1d8999923c
1 changed files with 14 additions and 17 deletions
|
|
@ -733,12 +733,8 @@ static inline void P_DeviceRumbleTick(void)
|
||||||
UINT16 low = 0;
|
UINT16 low = 0;
|
||||||
UINT16 high = 0;
|
UINT16 high = 0;
|
||||||
|
|
||||||
if (player->mo == NULL)
|
if (player->mo != NULL && !player->exiting)
|
||||||
continue;
|
{
|
||||||
|
|
||||||
if (player->exiting)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if ((player->mo->eflags & MFE_DAMAGEHITLAG) && player->mo->hitlag)
|
if ((player->mo->eflags & MFE_DAMAGEHITLAG) && player->mo->hitlag)
|
||||||
{
|
{
|
||||||
low = high = 65536 / 2;
|
low = high = 65536 / 2;
|
||||||
|
|
@ -752,6 +748,7 @@ static inline void P_DeviceRumbleTick(void)
|
||||||
{
|
{
|
||||||
low = high = 65536 / 32;
|
low = high = 65536 / 32;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
G_PlayerDeviceRumble(i, low, high);
|
G_PlayerDeviceRumble(i, low, high);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue