mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-13 22:56:28 +00:00
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
564ecf4f0f
commit
72b9fc014b
1 changed files with 5 additions and 0 deletions
|
|
@ -73,6 +73,7 @@
|
|||
#include "../console.h"
|
||||
#include "../command.h"
|
||||
#include "../r_main.h"
|
||||
#include "../lua_hook.h"
|
||||
#include "sdlmain.h"
|
||||
#ifdef HWRENDER
|
||||
#include "../hardware/hw_main.h"
|
||||
|
|
@ -1059,6 +1060,10 @@ void I_GetEvent(void)
|
|||
M_SetupJoystickMenu(0);
|
||||
break;
|
||||
case SDL_QUIT:
|
||||
#ifdef HAVE_BLUA
|
||||
if (Playing())
|
||||
LUAh_GameQuit();
|
||||
#endif
|
||||
I_Quit();
|
||||
M_QuitResponse('y');
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue