From 8bb9a261bdca5e7822e847d8f9dbf34b1aa1d506 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 11 Feb 2011 14:30:55 +0000 Subject: [PATCH] Auto complete demos on not in pk3s while in pure servers. Patch by Zack Middleton (#4794) --- code/client/cl_main.c | 2 +- code/server/sv_snapshot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 94cd70b4..8004f218 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -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 ); } } diff --git a/code/server/sv_snapshot.c b/code/server/sv_snapshot.c index ef851dd7..33c61bcd 100644 --- a/code/server/sv_snapshot.c +++ b/code/server/sv_snapshot.c @@ -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; }