about summary refs log tree commit diff
path: root/src/engine/shared
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/shared
parent83d8422c4cf3ad2b04b75c7478c92f91c1f8a307 (diff)
downloadzcatch-e37d536fdfd69bbd04b869e381d64840a185b854.tar.gz
zcatch-e37d536fdfd69bbd04b869e381d64840a185b854.zip
fixed some NETTYPE usage based on the socket state
Diffstat (limited to 'src/engine/shared')
-rw-r--r--src/engine/shared/network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/shared/network.h b/src/engine/shared/network.h
index 425d970a..228ba6dd 100644
--- a/src/engine/shared/network.h
+++ b/src/engine/shared/network.h
@@ -285,6 +285,7 @@ public:
 	// status requests
 	NETADDR ClientAddr(int ClientID) const { return m_aSlots[ClientID].m_Connection.PeerAddress(); }
 	NETSOCKET Socket() const { return m_Socket; }
+	int NetType() { return m_Socket.type; }
 	int MaxClients() const { return m_MaxClients; }
 
 	//
@@ -320,6 +321,7 @@ public:
 	int ResetErrorString();
 
 	// error and state
+	int NetType() { return m_Socket.type; }
 	int State();
 	int GotProblems();
 	const char *ErrorString();