turn off any active menus when using demo play commands

This commit is contained in:
Alug committed 2025-01-05 21:24:12 +01:00
1 parent 63b8cc1104
commit 8499ca358b
1 file changed
+6
+6
View File
@@ -2439,6 +2439,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();
@@ -2484,6 +2487,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();