Remove the rest of the Playing() checks for GameQuit hook

This commit is contained in:
GoldenTails 2020-11-29 16:53:29 -06:00
parent b389700de3
commit 119d2e9e37
4 changed files with 7 additions and 14 deletions

View file

@ -3026,7 +3026,6 @@ static void Got_KickCmd(UINT8 **p, INT32 playernum)
if (pnum == consoleplayer) if (pnum == consoleplayer)
{ {
if (Playing())
LUAh_GameQuit(false); LUAh_GameQuit(false);
#ifdef DUMPCONSISTENCY #ifdef DUMPCONSISTENCY
if (msg == KICK_MSG_CON_FAIL) SV_SavedGame(); if (msg == KICK_MSG_CON_FAIL) SV_SavedGame();
@ -3727,7 +3726,6 @@ static void HandleConnect(SINT8 node)
static void HandleShutdown(SINT8 node) static void HandleShutdown(SINT8 node)
{ {
(void)node; (void)node;
if (Playing())
LUAh_GameQuit(false); LUAh_GameQuit(false);
D_QuitNetGame(); D_QuitNetGame();
CL_Reset(); CL_Reset();
@ -3743,7 +3741,6 @@ static void HandleShutdown(SINT8 node)
static void HandleTimeout(SINT8 node) static void HandleTimeout(SINT8 node)
{ {
(void)node; (void)node;
if (Playing())
LUAh_GameQuit(false); LUAh_GameQuit(false);
D_QuitNetGame(); D_QuitNetGame();
CL_Reset(); CL_Reset();

View file

@ -3606,7 +3606,6 @@ static void Command_Playintro_f(void)
*/ */
FUNCNORETURN static ATTRNORETURN void Command_Quit_f(void) FUNCNORETURN static ATTRNORETURN void Command_Quit_f(void)
{ {
if (Playing())
LUAh_GameQuit(true); LUAh_GameQuit(true);
I_Quit(); I_Quit();
} }
@ -4269,7 +4268,6 @@ void Command_ExitGame_f(void)
{ {
INT32 i; INT32 i;
if (Playing())
LUAh_GameQuit(false); LUAh_GameQuit(false);
D_QuitNetGame(); D_QuitNetGame();

View file

@ -6937,7 +6937,6 @@ static void M_SelectableClearMenus(INT32 choice)
static void M_UltimateCheat(INT32 choice) static void M_UltimateCheat(INT32 choice)
{ {
(void)choice; (void)choice;
if (Playing())
LUAh_GameQuit(true); LUAh_GameQuit(true);
I_Quit(); I_Quit();
} }

View file

@ -1057,7 +1057,6 @@ void I_GetEvent(void)
M_SetupJoystickMenu(0); M_SetupJoystickMenu(0);
break; break;
case SDL_QUIT: case SDL_QUIT:
if (Playing())
LUAh_GameQuit(true); LUAh_GameQuit(true);
I_Quit(); I_Quit();
break; break;