]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix cl_curl_maxspeed 0 + sv_curl_maxspeed > 0.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Jan 2014 12:46:04 +0000 (12:46 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 4 Jan 2014 18:29:11 +0000 (19:29 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12035 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=26f5a6b03b23e117c585266027d8ac533a5320dc

libcurl.c

index 9e485b220410080754b5bc6cfc33717f0afde13f..48b9fdaa6e07ed1065590ebe47a39416082b3832 100644 (file)
--- 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;
        }