From: Rudolf Polzer Date: Mon, 22 Aug 2011 04:32:53 +0000 (+0200) Subject: urllib: make sure all errors have negative status X-Git-Tag: xonotic-v0.5.0~93 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=542a716cb08b19cd6e80f487dd97001d5a0ff9cd;p=xonotic%2Fxonotic-data.pk3dir.git urllib: make sure all errors have negative status --- diff --git a/qcsrc/common/urllib.qc b/qcsrc/common/urllib.qc index 54bcefecc..ef27faec3 100644 --- a/qcsrc/common/urllib.qc +++ b/qcsrc/common/urllib.qc @@ -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;