check if theres even controllers in rumble ticker
This commit is contained in:
1 parent
eb3c68df88
commit
8c2367d0e7
1 file changed
+4
-1
+4
-1
@@ -340,7 +340,7 @@ static inline void P_DeviceRumbleTick(void)
|
||||
{
|
||||
UINT8 i;
|
||||
|
||||
if (cv_rumble[0].value == 0 && cv_rumble[1].value == 0 && cv_rumble[2].value == 0 && cv_rumble[3].value == 0)
|
||||
if (I_NumJoys() == 0 || (cv_rumble[0].value == 0 && cv_rumble[1].value == 0 && cv_rumble[2].value == 0 && cv_rumble[3].value == 0))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -357,6 +357,9 @@ static inline void P_DeviceRumbleTick(void)
|
||||
if (!playeringame[displayplayers[i]] || player->spectator)
|
||||
continue;
|
||||
|
||||
if (G_GetDeviceForPlayer(i) == 0)
|
||||
continue;
|
||||
|
||||
if (player->exiting)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user