summaryrefslogtreecommitdiff
path: root/source/sv_init.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2009-09-17 18:09:36 +0000
committerAndrey Nazarov <skuller@skuller.net>2009-09-17 18:09:36 +0000
commit05f98bd1aec8a991575b55bb9df4b0a9d7667f85 (patch)
tree0c24685a53aa2bd4ebcfec74f8d9ed00c7cdb439 /source/sv_init.c
parent01e82db645907349939012f3956ca3cbdfac1f87 (diff)
Added ‘sv_recycle’ variable to the dedicated server. Setting it to 1 will cause reload of the game DLL once ‘gamemap’ command is executed, setting it to 2 will cause entire server exit sending reconnect message to the clients.
Diffstat (limited to 'source/sv_init.c')
-rw-r--r--source/sv_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/sv_init.c b/source/sv_init.c
index b136b8f..b8b0090 100644
--- a/source/sv_init.c
+++ b/source/sv_init.c
@@ -184,6 +184,10 @@ void SV_InitGame( qboolean ismvd ) {
// get any latched variable changes (maxclients, etc)
Cvar_GetLatchedVars ();
+#if !USE_CLIENT
+ Cvar_Reset( sv_recycle );
+#endif
+
CL_LocalConnect();
if( ismvd ) {