mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Compare against correct enum in dummy connect
This commit is contained in:
parent
22df50c9bd
commit
c5eb15d9f6
|
@ -919,7 +919,7 @@ void CClient::DummyConnect()
|
||||||
if(m_LastDummyConnectTime > 0 && m_LastDummyConnectTime + GameTickSpeed() * 5 > GameTick(g_Config.m_ClDummy))
|
if(m_LastDummyConnectTime > 0 && m_LastDummyConnectTime + GameTickSpeed() * 5 > GameTick(g_Config.m_ClDummy))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(m_aNetClient[CONN_MAIN].State() != NET_CONNSTATE_ONLINE && m_aNetClient[CONN_MAIN].State() != NET_CONNSTATE_PENDING)
|
if(m_aNetClient[CONN_MAIN].State() != NETSTATE_ONLINE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(m_DummyConnected || !DummyAllowed())
|
if(m_DummyConnected || !DummyAllowed())
|
||||||
|
|
Loading…
Reference in a new issue