Execute LUAh_GameQuit earlier in M_QuitResponse

It just feels a bit funny to execute LUAh_GameQuit if you are playing a session after the quit screen appears instead of before.
This commit is contained in:
Zachary McAlpin 2020-04-23 17:38:08 -05:00
parent 31b19f69a2
commit f6120410fb

View file

@ -12535,6 +12535,8 @@ void M_QuitResponse(INT32 ch)
if (ch != 'y' && ch != KEY_ENTER)
return;
if (Playing())
LUAh_GameQuit();
if (!(netgame || cv_debug))
{
S_ResetCaptions();
@ -12551,8 +12553,6 @@ void M_QuitResponse(INT32 ch)
I_Sleep();
}
}
if (Playing())
LUAh_GameQuit();
I_Quit();
}