summaryrefslogtreecommitdiff
path: root/source/cl_http.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-06-14 14:47:03 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-06-14 14:47:03 +0000
commit1acd69e9a128e4f3abf06b5ae97c968c87663864 (patch)
tree33be5bb0e2604fc21e57c1cdfb2577e842869ce2 /source/cl_http.c
parent06fec1c44031bd7fa32d417ff6b2533b422f094a (diff)
Allow *.pkz and *.md3 files in filelists.
Diffstat (limited to 'source/cl_http.c')
-rw-r--r--source/cl_http.c10
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;