]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
another patch from div0 to curl messages
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Jun 2006 07:04:40 +0000 (07:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Jun 2006 07:04:40 +0000 (07:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6446 d7cf8633-e32d-0410-b094-e92efae38249

libcurl.c

index 0af8955058b19566af3f27c1c3bb40829c837d56..e37d40d421f4baad78411cad3dac020e0a553560 100644 (file)
--- a/libcurl.c
+++ b/libcurl.c
@@ -832,14 +832,17 @@ void Curl_Curl_f(void)
        const char *url;
        const char *name = 0;
 
-       if(!cl_curl_enabled.integer)
+       if(!curl_dll)
        {
-               Con_Print("curl support not enabled. Set cl_curl_enabled to 1 to enable.\n");
+               Con_Print("libcurl DLL not found, this command is inactive.\n");
                return;
        }
 
-       if(!curl_dll)
+       if(!cl_curl_enabled.integer)
+       {
+               Con_Print("curl support not enabled. Set cl_curl_enabled to 1 to enable.\n");
                return;
+       }
 
        for(i = 0; i != Cmd_Argc(); ++i)
                Con_DPrintf("%s ", Cmd_Argv(i));