mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 00:11:19 +00:00
Execute LUAh_GameQuit in 2 additional places in m_menu.c
This commit is contained in:
parent
c629883afa
commit
28de6b1f93
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,7 @@
|
||||||
#include "p_local.h"
|
#include "p_local.h"
|
||||||
#include "p_setup.h"
|
#include "p_setup.h"
|
||||||
#include "f_finale.h"
|
#include "f_finale.h"
|
||||||
|
#include "lua_hook.h"
|
||||||
|
|
||||||
#ifdef HWRENDER
|
#ifdef HWRENDER
|
||||||
#include "hardware/hw_main.h"
|
#include "hardware/hw_main.h"
|
||||||
|
@ -6864,6 +6865,8 @@ 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();
|
||||||
I_Quit();
|
I_Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12535,6 +12538,8 @@ void M_QuitResponse(INT32 ch)
|
||||||
I_Sleep();
|
I_Sleep();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (Playing())
|
||||||
|
LUAh_GameQuit();
|
||||||
I_Quit();
|
I_Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue