mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 21:50:48 +00:00
Remove the rest of the Playing() checks for GameQuit hook
This commit is contained in:
parent
b389700de3
commit
119d2e9e37
4 changed files with 7 additions and 14 deletions
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue