summaryrefslogtreecommitdiff
path: root/src/server/sv_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/sv_init.c')
-rw-r--r--src/server/sv_init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/sv_init.c b/src/server/sv_init.c
index 5d760519..d9930f29 100644
--- a/src/server/sv_init.c
+++ b/src/server/sv_init.c
@@ -287,6 +287,9 @@ void SV_Startup( void ) {
}
Cvar_Set( "sv_running", "1" );
+
+ // Join the ipv6 multicast group now that a map is running so clients can scan for us on the local network.
+ NET_JoinMulticast6();
}
@@ -607,6 +610,10 @@ void SV_Init (void) {
Cvar_Get ("sv_cheats", "1", CVAR_SYSTEMINFO | CVAR_ROM );
sv_serverid = Cvar_Get ("sv_serverid", "0", CVAR_SYSTEMINFO | CVAR_ROM );
sv_pure = Cvar_Get ("sv_pure", "1", CVAR_SYSTEMINFO );
+#ifdef USE_VOIP
+ sv_voip = Cvar_Get ("sv_voip", "1", CVAR_SYSTEMINFO | CVAR_LATCH);
+ Cvar_CheckRange( sv_voip, 0, 1, qtrue );
+#endif
Cvar_Get ("sv_paks", "", CVAR_SYSTEMINFO | CVAR_ROM );
Cvar_Get ("sv_pakNames", "", CVAR_SYSTEMINFO | CVAR_ROM );
Cvar_Get ("sv_referencedPaks", "", CVAR_SYSTEMINFO | CVAR_ROM );
@@ -687,6 +694,8 @@ void SV_Shutdown( char *finalmsg ) {
Com_Printf( "----- Server Shutdown (%s) -----\n", finalmsg );
+ NET_LeaveMulticast6();
+
if ( svs.clients && !com_errorEntered ) {
SV_FinalMessage( finalmsg );
}