Execute LUAh_GameQuit in 2 additional places in m_menu.c

This commit is contained in:
Zachary McAlpin 2020-04-03 17:44:57 -05:00
parent c629883afa
commit 28de6b1f93
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,7 @@
#include "p_local.h"
#include "p_setup.h"
#include "f_finale.h"
#include "lua_hook.h"
#ifdef HWRENDER
#include "hardware/hw_main.h"
@ -6864,6 +6865,8 @@ static void M_SelectableClearMenus(INT32 choice)
static void M_UltimateCheat(INT32 choice)
{
(void)choice;
if (Playing())
LUAh_GameQuit();
I_Quit();
}
@ -12535,6 +12538,8 @@ void M_QuitResponse(INT32 ch)
I_Sleep();
}
}
if (Playing())
LUAh_GameQuit();
I_Quit();
}