about summary refs log tree commit diff
path: root/src/engine/shared
diff options
context:
space:
mode:
authorm!nus <m1nus@online.de>2011-04-02 01:56:16 +0200
committeroy <Tom_Adams@web.de>2011-04-02 17:35:50 +0200
commit3ebdc2a4ceb87c0787e9e5f31985879e4bd9a7f1 (patch)
treea17a7a71b4f1d5177ac7c9302f9e6c04f7da5589 /src/engine/shared
parent4adad07ad807d09b5f0fa94ec47d3cb9108e86c0 (diff)
downloadzcatch-3ebdc2a4ceb87c0787e9e5f31985879e4bd9a7f1.tar.gz
zcatch-3ebdc2a4ceb87c0787e9e5f31985879e4bd9a7f1.zip
added downward compatibility to mastersrv for 0.5 (and earlier)
Diffstat (limited to 'src/engine/shared')
-rw-r--r--src/engine/shared/network.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/engine/shared/network.h b/src/engine/shared/network.h
index 0fc3f0a8..cb1ec33a 100644
--- a/src/engine/shared/network.h
+++ b/src/engine/shared/network.h
@@ -44,9 +44,8 @@ enum
 {
 	NET_VERSION = 2,
 
-	NET_MAX_CHUNKSIZE = 1024,
-	NET_MAX_PAYLOAD = NET_MAX_CHUNKSIZE+16,
-	NET_MAX_PACKETSIZE = NET_MAX_PAYLOAD+16,
+	NET_MAX_PACKETSIZE = 1400,
+	NET_MAX_PAYLOAD = NET_MAX_PACKETSIZE-6,
 	NET_MAX_CHUNKHEADERSIZE = 5,
 	NET_PACKETHEADERSIZE = 3,
 	NET_MAX_CLIENTS = 16,
@@ -75,7 +74,7 @@ enum
 	
 	NET_SERVER_MAXBANS=1024,
 	
-	NET_CONN_BUFFERSIZE=1024*16,
+	NET_CONN_BUFFERSIZE=1024*32,
 	
 	NET_ENUM_TERMINATOR
 };