From 84a98475ff33882dfb53c5c8e27e108f99f8f2e7 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 4 Feb 2023 17:07:24 +0000 Subject: [PATCH] Command_ExitGame_f: Return to title if restoreMenu is NULL --- src/d_netcmd.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 2522ed4f4..1fa1a9ea8 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -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(); + } } }