Fix sound downloading

This commit is contained in:
mittorn 2018-05-05 00:12:30 +07:00
parent 30771fefa6
commit d3a0146b5a

View File

@ -1839,7 +1839,7 @@ static qboolean SV_DownloadFile_f( sv_client_t *cl )
const char *cmpname = name; const char *cmpname = name;
if( sv.resources[i].type == t_sound ) if( sv.resources[i].type == t_sound )
cmpname += sizeof( DEFAULT_SOUNDPATH ); // cut "sound/" off cmpname += sizeof( DEFAULT_SOUNDPATH ) - 1; // cut "sound/" off
if( !Q_strncmp( sv.resources[i].szFileName, cmpname, 64 ) ) if( !Q_strncmp( sv.resources[i].szFileName, cmpname, 64 ) )
break; break;