reset rumble when player is exiting
This commit is contained in:
1 parent
e100fff230
commit
f6361e29bd
1 file changed
+7
-4
+7
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user