Skip to content
Permalink
Browse files

client: fix regression where on server disconnect ui wasn't reloaded

refs #1225
  • Loading branch information
isRyven committed Jan 8, 2020
1 parent a1b3f33 commit 6319f49886319532f9234c4db16fadc152c3fab4
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/client/cl_main.c
@@ -676,18 +676,22 @@ void CL_Disconnect(qboolean showMainMenu)
// not connected to a pure server anymore
cl_connectedToPureServer = qfalse;

// reset connection state
cls.state = CA_DISCONNECTED;

// don't try a restart if uivm is NULL, as we might be in the middle of a restart already
if (uivm && cls.state > CA_DISCONNECTED)
{
// restart the UI
cls.state = CA_DISCONNECTED;

// shutdown the UI
CL_ShutdownUI();

// init the UI
CL_InitUI();
}
else
{
cls.state = CA_DISCONNECTED;
}
}

/**

0 comments on commit 6319f49

Please sign in to comment.
You can’t perform that action at this time.