From e6a7fe619e0bfa9cd4809c35991ad59394c5bdd2 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 16 Nov 2008 11:49:50 +0000 Subject: [PATCH] removed rate setting git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3541 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/client.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/source/src/client.cpp b/source/src/client.cpp index 56661ddc..e78122e2 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -27,14 +27,6 @@ bool allowedittoggle() return allow; } -void setrate(int rate) -{ - if(!curpeer) return; - enet_host_bandwidth_limit(clienthost, rate, rate); -} - -VARF(rate, 0, 0, 25000, setrate(rate)); - void throttle(); VARF(throttle_interval, 0, 5, 30, throttle()); @@ -101,7 +93,7 @@ void connectserv_(const char *servername, const char *serverport = NULL, const c address.host = ENET_HOST_BROADCAST; } - if(!clienthost) clienthost = enet_host_create(NULL, 2, rate, rate); + if(!clienthost) clienthost = enet_host_create(NULL, 2, 0, 0); if(clienthost) { @@ -418,7 +410,6 @@ void gets2c() // get updates from the server connected = 1; conoutf("connected to server"); throttle(); - if(rate) setrate(rate); if(editmode) toggleedit(true); break;