engine: client: fixed connection hang when all resources downloaded (fix #829)

This commit is contained in:
SNMetamorph 2022-12-09 19:30:07 +04:00 committed by Alibek Omarov
parent 840283d6e5
commit b1d910a3a5
1 changed files with 7 additions and 0 deletions

View File

@ -2472,11 +2472,18 @@ void CL_ProcessFile( qboolean successfully_received, const char *filename )
{
if( filename[0] != '!' )
Con_Printf( "processing %s\n", filename );
if( !Q_strnicmp( filename, "downloaded/", 11 ))
{
// skip "downloaded/" part to avoid mismatch with needed resources list
filename += 11;
}
}
else if( !successfully_received )
{
Con_Printf( S_ERROR "server failed to transmit file '%s'\n", CL_CleanFileName( filename ));
}
if( cls.legacymode )
{
if( host.downloadcount > 0 )