From 7fe9a02d91eed55b1e85674af536b88d588ff89b Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 6 Jul 2008 01:00:00 +0000 Subject: [PATCH] * In the dedicated binary, prevent setting dedicated cvar to 0 --- code/server/sv_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/server/sv_main.c b/code/server/sv_main.c index 667db41b..e17bd6ae 100644 --- a/code/server/sv_main.c +++ b/code/server/sv_main.c @@ -782,6 +782,14 @@ void SV_Frame( int msec ) { return; } +#ifdef DEDICATED + if( com_dedicated->integer == 0 ) + { + Com_Printf( "WARNING: dedicated must not be 0. Setting to 1.\n" ); + Cvar_Set( "dedicated", "1" ); + } +#endif + if (!com_sv_running->integer) { // Running as a server, but no map loaded