mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +00:00
Check if you are playing a game then execute `LUAh_GameQuit
` if you are in Command_quit_f and Command_ExitGame_f
This commit is contained in:
parent
8b7f93d50a
commit
2052ee1144
1 changed files with 5 additions and 1 deletions
|
@ -3574,6 +3574,10 @@ static void Command_Playintro_f(void)
|
|||
*/
|
||||
FUNCNORETURN static ATTRNORETURN void Command_Quit_f(void)
|
||||
{
|
||||
#ifdef HAVE_BLUA
|
||||
if (Playing())
|
||||
LUAh_GameQuit();
|
||||
#endif
|
||||
I_Quit();
|
||||
}
|
||||
|
||||
|
@ -4236,7 +4240,7 @@ void Command_ExitGame_f(void)
|
|||
INT32 i;
|
||||
|
||||
#ifdef HAVE_BLUA
|
||||
if (maptol)
|
||||
if (Playing())
|
||||
LUAh_GameQuit();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue