Command_ExitGame_f: Return to title if restoreMenu is NULL

This commit is contained in:
toaster 2023-02-04 17:07:24 +00:00
parent 59f9609160
commit 84a98475ff

View file

@ -5783,11 +5783,18 @@ void Command_ExitGame_f(void)
closefilemenu(true); closefilemenu(true);
if (!modeattacking) if (!modeattacking)
{
if (restoreMenu == NULL)
{
D_StartTitle();
}
else
{ {
D_ClearState(); D_ClearState();
M_StartControlPanel(); M_StartControlPanel();
} }
} }
}
void Command_Retry_f(void) void Command_Retry_f(void)
{ {