aboutsummaryrefslogtreecommitdiffstats
path: root/code/server
diff options
context:
space:
mode:
Diffstat (limited to 'code/server')
-rw-r--r--code/server/sv_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/server/sv_init.c b/code/server/sv_init.c
index c941e7d..9284127 100644
--- a/code/server/sv_init.c
+++ b/code/server/sv_init.c
@@ -280,6 +280,11 @@ void SV_Startup( void ) {
}
svs.initialized = qtrue;
+ // Don't respect sv_killserver unless a server is actually running
+ if ( sv_killserver->integer ) {
+ Cvar_Set( "sv_killserver", "0" );
+ }
+
Cvar_Set( "sv_running", "1" );
}