shithub: qk2

Download patch

ref: c80ce20775776c2a02b08e84566ef3aa887bcf62
parent: 0f28c0feb37aae1fc19e112bea7a342b3e9564b3
author: qwx <[email protected]>
date: Sun Jul 11 07:40:09 EDT 2021

sv: remove hardcoded id master server

this address is attempted to be resolved at startup,
it doesn't exist and masters can be set through commands

--- a/sv_init.c
+++ b/sv_init.c
@@ -274,7 +274,6 @@
 {
 	int		i;
 	edict_t	*ent;
-	char	idmaster[32];
 
 	if (svs.initialized)
 	{
@@ -335,8 +334,6 @@
 
 	// heartbeats will always be sent to the id master
 	svs.last_heartbeat = -99999;		// send immediately
-	Com_sprintf(idmaster, sizeof(idmaster), "192.246.40.37:%i", PORT_MASTER);
-	NET_StringToAdr (idmaster, &master_adr[0]);
 
 	// init game
 	SV_InitGameProgs ();