diff options
Diffstat (limited to 'src/client/cl_main.c')
-rw-r--r-- | src/client/cl_main.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/client/cl_main.c b/src/client/cl_main.c index 03bd542c..34eb95af 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -4168,25 +4168,9 @@ void CL_GlobalServers_f( void ) { cls.numglobalservers = -1; cls.pingUpdateSource = AS_GLOBAL; - // Use the extended query for IPv6 masters - if (to.type == NA_IP6 || to.type == NA_MULTICAST6) - { - int v4enabled = Cvar_VariableIntegerValue("net_enabled") & NET_ENABLEV4; - - if(v4enabled) - { - Com_sprintf(command, sizeof(command), "getserversExt %s %s", - com_gamename->string, Cmd_Argv(2)); - } - else - { - Com_sprintf(command, sizeof(command), "getserversExt %s %s ipv6", - com_gamename->string, Cmd_Argv(2)); - } - } - else - Com_sprintf(command, sizeof(command), "getservers %s %s", - com_gamename->string, Cmd_Argv(2)); + Com_sprintf(command, sizeof(command), "getserversExt %s %i%s", + com_gamename->string, PROTOCOL_VERSION, + (Cvar_VariableIntegerValue("net_enabled") & NET_ENABLEV4 ? "" : " ipv6")); for (i=3; i < count; i++) { |