mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 13:41:33 +01:00
engine: server: send server info to all master servers
This commit is contained in:
parent
01a3321d63
commit
b3c9637422
@ -714,13 +714,9 @@ Master_Add
|
||||
*/
|
||||
void Master_Add( void )
|
||||
{
|
||||
netadr_t adr;
|
||||
|
||||
NET_Config( true, false ); // allow remote
|
||||
|
||||
if( !NET_StringToAdr( MASTERSERVER_ADR, &adr ))
|
||||
Con_Printf( "can't resolve adr: %s\n", MASTERSERVER_ADR );
|
||||
else NET_SendPacket( NS_SERVER, 2, "q\xFF", adr );
|
||||
if( NET_SendToMasters( NS_SERVER, 2, "q\xFF" ))
|
||||
svs.last_heartbeat = MAX_HEARTBEAT;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -757,13 +753,8 @@ Informs all masters that this server is going down
|
||||
*/
|
||||
void Master_Shutdown( void )
|
||||
{
|
||||
netadr_t adr;
|
||||
|
||||
NET_Config( true, false ); // allow remote
|
||||
|
||||
if( !NET_StringToAdr( MASTERSERVER_ADR, &adr ))
|
||||
Con_Printf( "can't resolve addr: %s\n", MASTERSERVER_ADR );
|
||||
else NET_SendPacket( NS_SERVER, 2, "\x62\x0A", adr );
|
||||
while( NET_SendToMasters( NS_SERVER, 2, "\x62\x0A" ));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user