mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
clear the download name on failures
This commit is contained in:
parent
8b33d29848
commit
7dc9a93d46
1 changed files with 3 additions and 0 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue