diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-07-06 01:00:00 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-07-06 01:00:00 +0000 |
commit | c89b62bb73aeaf794d0efdd2fd1fbd8b1141a803 (patch) | |
tree | 31582dfa7dfbbe877a81d19c029c18525fbe30e8 /code | |
parent | a4f1c14ce673162578acc78204f52aa4b661a503 (diff) | |
download | ioquake3-aero-c89b62bb73aeaf794d0efdd2fd1fbd8b1141a803.tar.gz ioquake3-aero-c89b62bb73aeaf794d0efdd2fd1fbd8b1141a803.zip |
* 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
Diffstat (limited to 'code')
-rw-r--r-- | code/server/sv_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 |