Add a few missing calls to GameQuit hook

This commit is contained in:
Louis-Antoine 2020-05-27 14:58:10 +02:00
parent 566a5a0ab7
commit bb1e3fdf13

View file

@ -3036,6 +3036,8 @@ static void Got_KickCmd(UINT8 **p, INT32 playernum)
if (pnum == consoleplayer)
{
if (Playing())
LUAh_GameQuit();
#ifdef DUMPCONSISTENCY
if (msg == KICK_MSG_CON_FAIL) SV_SavedGame();
#endif
@ -3701,6 +3703,8 @@ static void HandleConnect(SINT8 node)
static void HandleShutdown(SINT8 node)
{
(void)node;
if (Playing())
LUAh_GameQuit();
D_QuitNetGame();
CL_Reset();
D_StartTitle();
@ -3715,6 +3719,8 @@ static void HandleShutdown(SINT8 node)
static void HandleTimeout(SINT8 node)
{
(void)node;
if (Playing())
LUAh_GameQuit();
D_QuitNetGame();
CL_Reset();
D_StartTitle();