clear the download name on failures

This commit is contained in:
Bill Currie 2002-01-23 19:01:19 +00:00
parent 8b33d29848
commit 7dc9a93d46

View file

@ -411,6 +411,7 @@ CL_ParseDownload (void)
if (cls.demoplayback) {
if (size > 0)
net_message->readcount += size;
cls.downloadname[0] = 0;
return; // not in demo playback
}
@ -421,6 +422,7 @@ CL_ParseDownload (void)
Qclose (cls.download);
cls.download = NULL;
}
cls.downloadname[0] = 0;
CL_RequestNextDownload ();
return;
}
@ -457,6 +459,7 @@ CL_ParseDownload (void)
cls.download = Qopen (name, "wb");
if (!cls.download) {
cls.downloadname[0] = 0;
net_message->readcount += size;
Con_Printf ("Failed to open %s\n", cls.downloadtempname);
CL_RequestNextDownload ();