Source/ThunderBeast/QuakeToon/server/sv_main.c
void Master_Shutdown (void)
{
	int			i;

	// pgm post3.19 change, cvar pointer not validated before dereferencing
	if (!dedicated || !dedicated->value)
		return;		// only dedicated servers send heartbeats

	// pgm post3.19 change, cvar pointer not validated before dereferencing
	if (!public_server || !public_server->value)
		return;		// a private dedicated game

	// send to group master
	for (i=0 ; i<MAX_MASTERS ; i++)
		if (master_adr[i].port)
		{
			if (i > 0)
				Com_Printf ("Sending heartbeat to %s\n", NET_AdrToString (master_adr[i]));
			Netchan_OutOfBandPrint (NS_SERVER, master_adr[i], "shutdown");
		}
}
/*
=================
Master_Shutdown

Informs all masters that this server is going down
=================
*/
Master_Shutdown
Informs all masters that this server is going down
Master_Shutdown Informs all masters that this server is going down
void Master_Shutdown (void)
{
	int			i;
	if (!dedicated || !dedicated->value)
		return;		
	if (!public_server || !public_server->value)
		return;		
	for (i=0 ; i<MAX_MASTERS ; i++)
		if (master_adr[i].port)
		{
			if (i > 0)
				Com_Printf ("Sending heartbeat to %s\n", NET_AdrToString (master_adr[i]));
			Netchan_OutOfBandPrint (NS_SERVER, master_adr[i], "shutdown");
		}
}
void Master_Shutdown ( void ) { int i ; if ( ! dedicated || ! dedicated -> value ) return ; if ( ! public_server || ! public_server -> value ) return ; for ( i = 0 ; i < MAX_MASTERS ; i ++ ) if ( master_adr [ i ] . port ) { if ( i > 0 ) Com_Printf ( " \n " , NET_AdrToString ( master_adr [ i ] ) ) ; Netchan_OutOfBandPrint ( NS_SERVER , master_adr [ i ] , " " ) ; } }
Master_Shutdown
Informs all masters that this server is going down
Master_Shutdown Informs all masters that this server is going down
// pgm post3.19 change, cvar pointer not validated before dereferencing // only dedicated servers send heartbeats // pgm post3.19 change, cvar pointer not validated before dereferencing // a private dedicated game // send to group master