From f0ed57a9a3a931c3c29c68b2c730a1f9a97522db Mon Sep 17 00:00:00 2001 From: def Date: Sat, 17 May 2014 20:00:01 +0200 Subject: [PATCH] Fix: Dummy can connect without port --- src/engine/client/client.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index df3812faa..76508a968 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -703,22 +703,10 @@ void CClient::DummyConnect() if(m_NetClient[0].State() != NET_CONNSTATE_ONLINE && m_NetClient[0].State() != NET_CONNSTATE_PENDING) return; - char aBuf[512]; - m_NetClient[1].Disconnect(0); - str_copy(aBuf, g_Config.m_UiServerAddress, sizeof(aBuf)); - m_RconAuthed[1] = 0; - if(net_host_lookup(m_aServerAddressStr, &m_ServerAddress, m_NetClient[1].NetType()) != 0) - { - char aBufMsg[256]; - str_format(aBufMsg, sizeof(aBufMsg), "could not find the address of %s, connecting to localhost", aBuf); - m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "client", aBufMsg); - net_host_lookup("localhost", &m_ServerAddress, m_NetClient[1].NetType()); - } - //connecting to the server m_NetClient[1].Connect(&m_ServerAddress);