1
0
Fork 0
forked from fte/fteqw

Rjlan made me find a bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1466 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-10-13 18:38:15 +00:00
parent 8f52f62dc9
commit 780f69ed27

View file

@ -84,6 +84,8 @@ package_t *BuildPackageList(FILE *f, int flags)
for (i = 0; i < sizeof(downloadablelist)/sizeof(downloadablelist[0])-1; i++)
{
if (!downloadablelist[i])
break;
if (!strcmp(downloadablelist[i], sl))
break;
}
@ -314,6 +316,7 @@ qboolean M_Download_Key (struct menucustom_s *c, struct menu_s *m, int key)
{
if ((p->flags&DPF_WANTTOINSTALL) && !(p->flags&DPF_HAVEAVERSION))
{ //if we want it and don't have it:
Con_Printf("Downloading %s (to %s)\n", p->fullname, p->dest);
COM_CreatePath(va("%s/%s", com_gamedir, p->dest));
if (HTTP_CL_Get(p->src, p->dest, NULL))
p->flags|=DPF_HAVEAVERSION; //FIXME: This is error prone.