Don't enable csqc if we can't use it properly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1417 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d29bbb747d
commit
37392cfd7c
1 changed files with 17 additions and 14 deletions
|
@ -659,6 +659,8 @@ void Sound_NextDownload (void)
|
|||
{
|
||||
Con_TPrintf (TLC_CHECKINGSOUNDS);
|
||||
#ifdef CSQC_DAT
|
||||
if (cls.fteprotocolextensions & PEXT_CSQC)
|
||||
{
|
||||
s = Info_ValueForKey(cl.serverinfo, "*csprogs");
|
||||
if (*s || cls.demoplayback) //only allow csqc if the server says so, and the 'checksum' matches.
|
||||
{
|
||||
|
@ -678,12 +680,13 @@ void Sound_NextDownload (void)
|
|||
Con_Printf("Not downloading csprogs.dat\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
cls.downloadnumber = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CSQC_DAT
|
||||
if (cls.downloadnumber == 1)
|
||||
if (cls.downloadnumber == 1 && cls.fteprotocolextensions & PEXT_CSQC)
|
||||
{
|
||||
s = Info_ValueForKey(cl.serverinfo, "*csprogs");
|
||||
if (*s || cls.demoplayback) //only allow csqc if the server says so, and the 'checksum' matches.
|
||||
|
|
Loading…
Reference in a new issue