From a6e408eb13438bdd1146dc32b9989f7245b4e399 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Fri, 22 Mar 2013 20:18:40 +0000 Subject: [PATCH] autodl switch git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7386 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/client.cpp b/source/src/client.cpp index 7b9dbca6..bd265d80 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -878,6 +878,7 @@ vector pckservers; hashtable pendingpackages; // cubescript +VARP(autodownload, 0, 1, 1); void resetpckservers() { @@ -1044,7 +1045,7 @@ int downloadpackages() bool requirepackage(int type, const char *path) { - if(!havecurl || canceldownloads || type < 0 || type >= PCK_NUM || pendingpackages.access(path)) return false; + if(!havecurl || canceldownloads || !autodownload || type < 0 || type >= PCK_NUM || pendingpackages.access(path)) return false; package *pck = new package; pck->name = unixpath(newstring(path));