From 221e729a3b69381fed843749c9728f827217aa90 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Tue, 26 Apr 2011 23:45:01 +0000 Subject: * Remove the protocol argument to globalServers, always use PROTOCOL_VERSION - This fixes the server list, thanks to Oopss for pointing out it was broken * Remove debug_protocol * Revert some getservers stuff accidentally merged from ioq3 --- src/ui/ui_main.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'src/ui') diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index b776521e..b3482727 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -1080,7 +1080,6 @@ UI_StartServerRefresh */ static void UI_StartServerRefresh( qboolean full ) { - int i; char *ptr; int time; qtime_t q; @@ -1120,20 +1119,10 @@ static void UI_StartServerRefresh( qboolean full ) if( ui_netSource.integer == AS_GLOBAL || ui_netSource.integer == AS_MPLAYER ) { - if( ui_netSource.integer == AS_GLOBAL ) - i = 0; - else - i = 1; - - ptr = UI_Cvar_VariableString( "debug_protocol" ); + qboolean global = ui_netSource.integer == AS_GLOBAL; - if( strlen( ptr ) ) - trap_Cmd_ExecuteText( EXEC_APPEND, va( "globalservers %d %s full empty\n", i, ptr ) ); - else - { - trap_Cmd_ExecuteText( EXEC_APPEND, va( "globalservers %d %d full empty\n", i, - (int)trap_Cvar_VariableValue( "protocol" ) ) ); - } + trap_Cmd_ExecuteText( EXEC_APPEND, va( "globalservers %d full empty\n", + global ? 0 : 1 ) ); } } @@ -4125,8 +4114,6 @@ void UI_Init( qboolean inGameLoad ) uiInfo.serverStatus.currentServerCinematic = -1; uiInfo.previewMovie = -1; - trap_Cvar_Register( NULL, "debug_protocol", "", 0 ); - UI_ParseResolutions( ); } -- cgit