- Different fix for the previous bug, better safe than sorry.

This commit is contained in:
drfrag 2020-10-05 21:20:36 +02:00
parent e3ed066b82
commit d6775e9322
2 changed files with 5 additions and 0 deletions

View file

@ -1021,6 +1021,8 @@ void D_Display ()
void D_ErrorCleanup () void D_ErrorCleanup ()
{ {
bool aux;
savegamerestore = false; savegamerestore = false;
if (screen) if (screen)
screen->Unlock (); screen->Unlock ();
@ -1029,7 +1031,9 @@ void D_ErrorCleanup ()
if (demorecording || demoplayback) if (demorecording || demoplayback)
G_CheckDemoStatus (); G_CheckDemoStatus ();
Net_ClearBuffers (); Net_ClearBuffers ();
aux = netgame; // for NetServerInfo
G_NewInit (); G_NewInit ();
netgame = aux;
M_ClearMenus (); M_ClearMenus ();
singletics = false; singletics = false;
playeringame[0] = 1; playeringame[0] = 1;

View file

@ -343,6 +343,7 @@ void G_NewInit ()
} }
G_ClearSnapshots (); G_ClearSnapshots ();
netgame = false;
multiplayer = multiplayernext; multiplayer = multiplayernext;
multiplayernext = false; multiplayernext = false;
if (demoplayback) if (demoplayback)