]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
urllib: make sure all errors have negative status
authorRudolf Polzer <divVerent@xonotic.org>
Mon, 22 Aug 2011 04:32:53 +0000 (06:32 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 22 Aug 2011 04:32:53 +0000 (06:32 +0200)
qcsrc/common/urllib.qc

index 54bcefecca9b01a2f10e1b6a5d49267c9954dca9..ef27faec3240c92086e71ea414b88d933c98b00f 100644 (file)
@@ -65,7 +65,7 @@ float url_URI_Get_Callback(float id, float status, string data)
        else
        {
                // an ERROR
-               e.url_ready(e, e.url_ready_pass, -status);
+               e.url_ready(e, e.url_ready_pass, -fabs(status));
                strunzone(e.url_url);
                remove(e);
                return 1;