From fcd3f100d2b6b706425a1edbecaa7f5f68c83245 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 5 Dec 2004 11:37:39 +0000 Subject: [PATCH] Should never happen, but be prepared for it. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@568 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_parse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index e01db919d..5eec97612 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -957,6 +957,13 @@ void CL_ParseDownload (void) return; // not in demo playback } + if (!*cls.downloadname) //huh... that's not right... + { + Con_Print("^1Warning: Server sending unknown file.\n"); + strcpy(cls.downloadname, "unknown.txt"); + strcpy(cls.downloadtempname, "unknown.tmp"); + } + if (size == -1) { Con_TPrintf (TL_FILENOTFOUND);