about summary refs log tree commit diff
path: root/src/engine/client
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-07 01:48:00 +0200
committeroy <Tom_Adams@web.de>2011-07-07 01:48:00 +0200
commite37d536fdfd69bbd04b869e381d64840a185b854 (patch)
tree4abd4195082c25ab52b1b63f3fa4c615d99c80b6 /src/engine/client
parent83d8422c4cf3ad2b04b75c7478c92f91c1f8a307 (diff)
downloadzcatch-e37d536fdfd69bbd04b869e381d64840a185b854.tar.gz
zcatch-e37d536fdfd69bbd04b869e381d64840a185b854.zip
fixed some NETTYPE usage based on the socket state
Diffstat (limited to 'src/engine/client')
-rw-r--r--src/engine/client/client.cpp8
-rw-r--r--src/engine/client/client.h1
2 files changed, 4 insertions, 5 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index 90cb2011..6949c308 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -693,12 +693,12 @@ void CClient::Connect(const char *pAddress)
 
 	ServerInfoRequest();
 
-	if(net_host_lookup(m_aServerAddressStr, &m_ServerAddress, NETTYPE_ALL) != 0)
+	if(net_host_lookup(m_aServerAddressStr, &m_ServerAddress, m_NetClient.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, NETTYPE_ALL);
+		net_host_lookup("localhost", &m_ServerAddress, m_NetClient.NetType());
 	}
 
 	m_RconAuthed = 0;
@@ -1799,7 +1799,7 @@ void CClient::VersionUpdate()
 {
 	if(m_VersionInfo.m_State == CVersionInfo::STATE_INIT)
 	{
-		Engine()->HostLookup(&m_VersionInfo.m_VersionServeraddr, g_Config.m_ClVersionServer, m_BindAddr.type);
+		Engine()->HostLookup(&m_VersionInfo.m_VersionServeraddr, g_Config.m_ClVersionServer, m_NetClient.NetType());
 		m_VersionInfo.m_State = CVersionInfo::STATE_START;
 	}
 	else if(m_VersionInfo.m_State == CVersionInfo::STATE_START)
@@ -1881,7 +1881,7 @@ void CClient::Run()
 	Input()->Init();
 
 	// start refreshing addresses while we load
-	MasterServer()->RefreshAddresses(m_BindAddr.type);
+	MasterServer()->RefreshAddresses(m_NetClient.NetType());
 
 	// init the editor
 	m_pEditor->Init();
diff --git a/src/engine/client/client.h b/src/engine/client/client.h
index ddcd1167..fa0ddaf7 100644
--- a/src/engine/client/client.h
+++ b/src/engine/client/client.h
@@ -118,7 +118,6 @@ class CClient : public IClient, public CDemoPlayer::IListner
 	float m_FrameTimeHigh;
 	int m_Frames;
 	NETADDR m_ServerAddress;
-	NETADDR m_BindAddr;
 	int m_WindowMustRefocus;
 	int m_SnapCrcErrors;
 	bool m_AutoScreenshotRecycle;