From c5eb15d9f62d9c08ac7a741318bffedcf23acbe3 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Tue, 16 May 2023 16:38:55 +0200 Subject: [PATCH] Compare against correct enum in dummy connect --- src/engine/client/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 829dc96ee..fee8bd9d9 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -919,7 +919,7 @@ void CClient::DummyConnect() if(m_LastDummyConnectTime > 0 && m_LastDummyConnectTime + GameTickSpeed() * 5 > GameTick(g_Config.m_ClDummy)) 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; if(m_DummyConnected || !DummyAllowed())