From 0e56202d638fe0d2b71f78a1056ea7efd21f0e1d Mon Sep 17 00:00:00 2001 From: Zachary McAlpin Date: Sun, 15 Mar 2020 00:28:41 -0500 Subject: [PATCH] Let's just call LUAh_GameQuit in Command_ExitGame_f during its execution if you are in game and are not a dedicated server --- src/d_netcmd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index c6ea974ae..582e4d0a3 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -4235,6 +4235,11 @@ void Command_ExitGame_f(void) { INT32 i; +#ifdef HAVE_BLUA + if ((maptol) && (!dedicated)) + LUAh_GameQuit(); +#endif + D_QuitNetGame(); CL_Reset(); CV_ClearChangedFlags();