mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Execute LUAh_GameQuit in 2 additional places in m_menu.c
This commit is contained in:
parent
1f552576e2
commit
8110e880a9
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…
Add table
Reference in a new issue