Fix small bug where the TF2.8 intro demo didn't play its music.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5861 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-05-19 04:49:58 +00:00
parent e789d4400b
commit 9af3e9b307
1 changed files with 3 additions and 2 deletions

View File

@ -3913,7 +3913,7 @@ static void CLNQ_ParseServerData(void) //Doesn't change gamedir - use with caut
Con_TPrintf ("Server sent too many model precaches\n");
return;
}
strcpy (cl.model_name[nummodels], str);
Q_strncpyz(cl.model_name[nummodels], str, sizeof(cl.model_name[nummodels]));
if (*str != '*' && strcmp(str, "null")) //not inline models!
CL_CheckOrEnqueDownloadFile(str, NULL, ((nummodels==1)?DLLF_REQUIRED|DLLF_ALLOWWEB:0));
@ -3959,7 +3959,8 @@ static void CLNQ_ParseServerData(void) //Doesn't change gamedir - use with caut
Con_TPrintf ("Server sent too many sound precaches\n");
return;
}
strcpy (cl.sound_name[numsounds], str);
Q_strncpyz(cl.sound_name[numsounds], str, sizeof(cl.sound_name[numsounds]));
cl.sound_precache[numsounds] = S_FindName(cl.sound_name[numsounds], true, false);
Sound_CheckDownload(str);
S_TouchSound (str);