From: divverent Date: Sat, 4 Jan 2014 12:46:04 +0000 (+0000) Subject: Fix cl_curl_maxspeed 0 + sv_curl_maxspeed > 0. X-Git-Tag: xonotic-v0.8.0~102 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=23b9ecaaaa0ab24ba7fd4131e9bd228137a58137;p=xonotic%2Fdarkplaces.git Fix cl_curl_maxspeed 0 + sv_curl_maxspeed > 0. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12035 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=26f5a6b03b23e117c585266027d8ac533a5320dc --- diff --git a/libcurl.c b/libcurl.c index 9e485b22..48b9fdaa 100644 --- a/libcurl.c +++ b/libcurl.c @@ -1226,7 +1226,7 @@ void Curl_Run(void) if(maxspeed > 0) { double bytes = bytes_sent + bytes_received; // maybe smoothen a bit? - curltime = realtime + bytes / (cl_curl_maxspeed.value * 1024.0); + curltime = realtime + bytes / (maxspeed * 1024.0); bytes_sent = 0; bytes_received = 0; }