Compare against correct enum in dummy connect

This commit is contained in:
ChillerDragon 2023-05-16 16:38:55 +02:00
parent 22df50c9bd
commit c5eb15d9f6

View file

@ -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())