only rumble controllers for local players

also not in replays
This commit is contained in:
alufolie91 committed 2026-07-05 22:25:39 +02:00
1 parent 2302d4efbd
commit 2ae1e0f56e
1 file changed
+7 -1
+7 -1
View File
@@ -1059,7 +1059,7 @@ void G_DeviceRumbleTick(void)
{
UINT8 i;
if (dedicated || numcontrollers == 0 || gamestate != GS_LEVEL)
if (dedicated || numcontrollers == 0 || gamestate != GS_LEVEL || demo.playback)
{
return;
}
@@ -1096,6 +1096,12 @@ void G_DeviceRumbleTick(void)
continue;
}
// only rumble for local players!
if (!P_IsLocalPlayer(player))
{
continue;
}
// reset the rumble if you exit or are ded lel
if (player->exiting ||
player->playerstate == PST_DEAD ||