mirror of https://github.com/ioquake/ioq3.git
* In the dedicated binary, prevent setting dedicated cvar to 0
This commit is contained in:
parent
49413057ee
commit
7fe9a02d91
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue