Auto complete demos on not in pk3s while in pure servers. Patch by Zack Middleton (#4794)

This commit is contained in:
Thilo Schulz 2011-02-11 14:30:55 +00:00
parent 91d1a6aab4
commit 8bb9a261bd
2 changed files with 2 additions and 2 deletions

View file

@ -911,7 +911,7 @@ static void CL_CompleteDemoName( char *args, int argNum )
char demoExt[ 16 ];
Com_sprintf( demoExt, sizeof( demoExt ), ".dm_%d", PROTOCOL_VERSION );
Field_CompleteFilename( "demos", demoExt, qtrue, qfalse );
Field_CompleteFilename( "demos", demoExt, qtrue, qtrue );
}
}

View file

@ -350,7 +350,7 @@ static void SV_AddEntitiesVisibleFromPoint( vec3_t origin, clientSnapshot_t *fra
// entities can be flagged to be sent to a given mask of clients
if ( ent->r.svFlags & SVF_CLIENTMASK ) {
if (frame->ps.clientNum >= 32)
Com_Error( ERR_DROP, "SVF_CLIENTMASK: cientNum >= 32\n" );
Com_Error( ERR_DROP, "SVF_CLIENTMASK: clientNum >= 32\n" );
if (~ent->r.singleClient & (1 << frame->ps.clientNum))
continue;
}