Call LUAh_GameQuit in I_GetEvent in if the event is SDL_Quit and if you are in a playing session
Time for the ultimate testing to see if I get any undefined reference compiling errors
This commit is contained in:
parent
2052ee1144
commit
569034d3a9
|
@ -73,6 +73,7 @@
|
||||||
#include "../console.h"
|
#include "../console.h"
|
||||||
#include "../command.h"
|
#include "../command.h"
|
||||||
#include "../r_main.h"
|
#include "../r_main.h"
|
||||||
|
#include "../lua_hook.h"
|
||||||
#include "sdlmain.h"
|
#include "sdlmain.h"
|
||||||
#ifdef HWRENDER
|
#ifdef HWRENDER
|
||||||
#include "../hardware/hw_main.h"
|
#include "../hardware/hw_main.h"
|
||||||
|
@ -1059,6 +1060,10 @@ void I_GetEvent(void)
|
||||||
M_SetupJoystickMenu(0);
|
M_SetupJoystickMenu(0);
|
||||||
break;
|
break;
|
||||||
case SDL_QUIT:
|
case SDL_QUIT:
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
|
if (Playing())
|
||||||
|
LUAh_GameQuit();
|
||||||
|
#endif
|
||||||
I_Quit();
|
I_Quit();
|
||||||
M_QuitResponse('y');
|
M_QuitResponse('y');
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue