turn off any active menus when using demo play commands

This commit is contained in:
Alug committed 2025-01-05 21:24:03 +01:00
1 parent 718fe7e8ae
commit 890779713a
1 file changed
+6
+6
View File
@@ -2435,6 +2435,9 @@ static void Command_Playdemo_f(void)
return;
}
// turn off any open menus
M_ClearMenus(true);
// disconnect from server here?
if (demo.playback)
G_StopDemo();
@@ -2480,6 +2483,9 @@ static void Command_Timedemo_f(void)
return;
}
// turn off any open menus
M_ClearMenus(true);
// disconnect from server here?
if (demo.playback)
G_StopDemo();