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

@ -5784,8 +5784,15 @@ void Command_ExitGame_f(void)
if (!modeattacking)
{
D_ClearState();
M_StartControlPanel();
if (restoreMenu == NULL)
{
D_StartTitle();
}
else
{
D_ClearState();
M_StartControlPanel();
}
}
}