]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/urllib.qc
urllib: make sure all errors have negative status
[xonotic/xonotic-data.pk3dir.git] / 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;