From c89b62bb73aeaf794d0efdd2fd1fbd8b1141a803 Mon Sep 17 00:00:00 2001 From: tma Date: Sun, 6 Jul 2008 01:00:00 +0000 Subject: * In the dedicated binary, prevent setting dedicated cvar to 0 git-svn-id: svn://svn.icculus.org/quake3/trunk@1408 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/server/sv_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'code/server') diff --git a/code/server/sv_main.c b/code/server/sv_main.c index 667db41..e17bd6a 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 -- cgit v1.2.3