mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Only allow dummy connect when we're connected to server
This commit is contained in:
parent
7bc20331d9
commit
102997a989
|
@ -696,6 +696,9 @@ void CClient::DummyConnect()
|
|||
if(m_LastDummyConnectTime > GameTick())
|
||||
return;
|
||||
|
||||
if(m_NetClient[0].State() != NET_CONNSTATE_ONLINE)
|
||||
return;
|
||||
|
||||
char aBuf[512];
|
||||
|
||||
m_NetClient[1].Disconnect(0);
|
||||
|
|
Loading…
Reference in a new issue