I_Error when dedi tries to go to main error

This will not fix the issue entirely but will at least prevent server
getting stuck and backtrace will show where did it try to go into menu from
This commit is contained in:
indev committed 2026-01-16 11:11:36 +03:00
1 parent b812d61da2
commit 1b8d7b1541
1 file changed
+3
+3
View File
@@ -946,6 +946,9 @@ void D_ClearState(void)
//
void D_StartTitle(void)
{
if (dedicated)
I_Error("D_StartTitle is called on dedicated server");
D_ClearState();
multiplayer = netgame = false; // title menu shouldnt be a netgame or multiplayer lmao
F_StartTitleScreen();