mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Dummy connect and disconnect (Thanks to Kati)
This commit is contained in:
parent
6bcdb4fdb8
commit
bf38e947a8
|
@ -703,7 +703,8 @@ void CClient::DummyConnect()
|
|||
if(m_NetClient[0].State() != NET_CONNSTATE_ONLINE && m_NetClient[0].State() != NET_CONNSTATE_PENDING)
|
||||
return;
|
||||
|
||||
m_NetClient[1].Disconnect(0);
|
||||
if(m_DummyConnected)
|
||||
return;
|
||||
|
||||
m_RconAuthed[1] = 0;
|
||||
|
||||
|
@ -733,6 +734,9 @@ void CClient::DummyConnect()
|
|||
|
||||
void CClient::DummyDisconnect(const char *pReason)
|
||||
{
|
||||
if(!m_DummyConnected)
|
||||
return;
|
||||
|
||||
m_NetClient[1].Disconnect(pReason);
|
||||
g_Config.m_ClDummy = 0;
|
||||
m_RconAuthed[1] = 0;
|
||||
|
|
Loading…
Reference in a new issue