From 23b9ecaaaa0ab24ba7fd4131e9bd228137a58137 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 4 Jan 2014 12:46:04 +0000 Subject: [PATCH] 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 --- libcurl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2