diff options
author | Andrey Nazarov <skuller@skuller.net> | 2010-06-14 14:47:03 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2010-06-14 14:47:03 +0000 |
commit | 1acd69e9a128e4f3abf06b5ae97c968c87663864 (patch) | |
tree | 33be5bb0e2604fc21e57c1cdfb2577e842869ce2 /source/cl_http.c | |
parent | 06fec1c44031bd7fa32d417ff6b2533b422f094a (diff) |
Allow *.pkz and *.md3 files in filelists.
Diffstat (limited to 'source/cl_http.c')
-rw-r--r-- | source/cl_http.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cl_http.c b/source/cl_http.c index 4c7e337..4729a35 100644 --- a/source/cl_http.c +++ b/source/cl_http.c @@ -567,13 +567,13 @@ qboolean HTTP_DownloadsPending (void) { } static qboolean check_extension (const char *ext) { - static const char allowed[][4] = { + static const char allowed[14][4] = { "pcx", "wal", "wav", "md2", "sp2", "tga", "png", - "jpg", "bsp", "ent", "txt", "dm2", "loc", "" + "jpg", "bsp", "ent", "txt", "dm2", "loc", "md3" }; int i; - for (i = 0; allowed[i][0]; i++) + for (i = 0; i < 14; i++) if (!strcmp (ext, allowed[i])) return qtrue; return qfalse; @@ -600,8 +600,8 @@ static void check_and_queue_download (char *path) { Q_strlwr (ext); - if (!strcmp (ext, "pak")) { - Com_Printf ("[HTTP] Filelist is requesting a .pak file '%s'\n", path); + if (!strcmp (ext, "pak") || !strcmp (ext, "pkz")) { + Com_Printf ("[HTTP] Filelist is requesting a .%s file '%s'\n", ext, path); type = DL_PAK; } else { type = DL_OTHER; |