Reset device rumble on exitlevel, exitgame, map

This commit is contained in:
Eidolon 2023-03-25 22:36:56 -05:00 committed by toaster
parent 839f2a6d15
commit a71c7dfad6
2 changed files with 6 additions and 0 deletions

View file

@ -2898,6 +2898,8 @@ void CL_Reset(void)
http_source[0] = '\0';
#endif
G_ResetAllDeviceRumbles();
// D_StartTitle should get done now, but the calling function will handle it
}

View file

@ -1571,6 +1571,8 @@ void G_DoLoadLevelEx(boolean resetplayer, gamestate_t newstate)
{
Automate_Run(AEV_ROUNDSTART);
}
G_ResetAllDeviceRumbles();
}
void G_DoLoadLevel(boolean resetplayer)
@ -3197,6 +3199,8 @@ void G_AddPlayer(INT32 playernum)
void G_ExitLevel(void)
{
G_ResetAllDeviceRumbles();
if (gamestate == GS_LEVEL)
{
UINT8 i;