mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Remove the rest of the Playing() checks for GameQuit hook
This commit is contained in:
parent
7c8a447d8f
commit
d8ab3a75ed
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…
Add table
Reference in a new issue