diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2011-04-26 23:45:01 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:07 +0000 |
commit | 221e729a3b69381fed843749c9728f827217aa90 (patch) | |
tree | 2a8978dea620fb7a7a366657ecb5549ff6f62842 /src/ui | |
parent | 06006eb6930de74c577c87daf6a0f7917e22d578 (diff) |
* 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
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui_main.c | 19 |
1 files changed, 3 insertions, 16 deletions
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( ); } |