1
0
Fork 0
forked from fte/fteqw

This gets csprogs to download. ahh well.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1835 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-01-10 18:48:03 +00:00
parent a94b2f19c9
commit 12a1bcb2c1

View file

@ -942,7 +942,7 @@ void CL_ParseChunkedDownload(void)
Host_EndGame("Received second download - \"%s\"\n", svname); Host_EndGame("Received second download - \"%s\"\n", svname);
if (strcmp(cls.downloadname, svname)) if (strcmp(cls.downloadname, svname))
if (strcmp(cls.downloadname, "csprogs.dat") || strcmp(cls.downloadname, "csprogsvers/")) if (strcmp(svname, "csprogs.dat") || strncmp(cls.downloadname, "csprogsvers/", 12))
Host_EndGame("Server sent the wrong download - \"%s\" instead of \"%s\"\n", svname, cls.downloadname); Host_EndGame("Server sent the wrong download - \"%s\" instead of \"%s\"\n", svname, cls.downloadname);
@ -953,9 +953,11 @@ void CL_ParseChunkedDownload(void)
downloadstarttime = Sys_DoubleTime(); downloadstarttime = Sys_DoubleTime();
/*
strcpy(cls.downloadname, svname); strcpy(cls.downloadname, svname);
COM_StripExtension(svname, cls.downloadtempname); COM_StripExtension(svname, cls.downloadtempname);
COM_DefaultExtension(cls.downloadtempname, ".tmp"); COM_DefaultExtension(cls.downloadtempname, ".tmp");
*/
if (!strncmp(cls.downloadtempname,"skins/",6)) if (!strncmp(cls.downloadtempname,"skins/",6))
{ {