* In the dedicated binary, prevent setting dedicated cvar to 0

This commit is contained in:
Tim Angus 2008-07-06 01:00:00 +00:00
parent 49413057ee
commit 7fe9a02d91
1 changed files with 8 additions and 0 deletions

View File

@ -782,6 +782,14 @@ void SV_Frame( int msec ) {
return; 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) if (!com_sv_running->integer)
{ {
// Running as a server, but no map loaded // Running as a server, but no map loaded