mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-25 16:04:11 +00:00
Add Multicast capabilities for LAN server scanning.
This commit is contained in:
parent
32bd0ab5bd
commit
eb3b59308b
10 changed files with 351 additions and 153 deletions
|
@ -286,6 +286,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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -734,6 +737,8 @@ void SV_Shutdown( char *finalmsg ) {
|
|||
|
||||
Com_Printf( "----- Server Shutdown (%s) -----\n", finalmsg );
|
||||
|
||||
NET_LeaveMulticast6();
|
||||
|
||||
if ( svs.clients && !com_errorEntered ) {
|
||||
SV_FinalMessage( finalmsg );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue