reset rumble when player is exiting

This commit is contained in:
Alug committed 2024-08-16 00:08:52 +02:00
1 parent e100fff230
commit f6361e29bd
1 file changed
+7 -4
+7 -4
View File
@@ -333,18 +333,21 @@ static inline void P_DeviceRumbleTick(void)
if (!P_IsLocalPlayer(player))
continue;
if (!playeringame[i] || player->spectator)
continue;
if (G_GetDeviceForPlayer(i) == 0)
continue;
if (player->exiting)
if (!playeringame[displayplayers[i]] || player->spectator)
continue;
if (player->mo == NULL)
continue;
if (player->exiting)
{
G_PlayerDeviceRumble(i, low, high, 0);
continue;
}
if (player->kartstuff[k_spinouttimer])
{
low = high = 65536 / 4;