mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
8f52f62dc9
commit
780f69ed27
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue