From 0dfbff21e82c091f9befd4489ad9d7de6908c6b3 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 24 Aug 2007 11:08:35 +0000 Subject: * Remove some fs_restrict code * Say "Waiting for response" instead of "...-1 servers" * (bug 3054) After running a listen server, sv_killserver is not set --- src/client/cl_main.c | 5 ----- src/ui/ui_main.c | 10 +++++++--- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/client/cl_main.c b/src/client/cl_main.c index 28d95739..76b197d3 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -3169,11 +3169,6 @@ void CL_GlobalServers_f( void ) { for (i=3; ix, rect->y, scale, newColor, va("Getting info for %d servers (ESC to cancel)", trap_LAN_GetServerCount(ui_netSource.integer)), 0, 0, textStyle); + Text_Paint(rect->x, rect->y, scale, newColor, + numServers < 0 ? "Waiting for response..." : + va("Getting info for %d servers (ESC to cancel)", numServers), 0, 0, textStyle); } else { char buff[64]; Q_strncpyz(buff, UI_Cvar_VariableString(va("ui_lastServerRefresh_%i", ui_netSource.integer)), 64); @@ -5759,7 +5763,7 @@ void _UI_SetActiveMenu( uiMenuCommand_t menu ) { return; case UIMENU_MAIN: - //trap_Cvar_Set( "sv_killserver", "1" ); + trap_Cvar_Set( "sv_killserver", "1" ); trap_Key_SetCatcher( KEYCATCH_UI ); //trap_S_StartLocalSound( trap_S_RegisterSound("sound/misc/menu_background.wav", qfalse) , CHAN_LOCAL_SOUND ); //trap_S_StartBackgroundTrack("sound/misc/menu_background.wav", NULL); @@ -5786,7 +5790,7 @@ void _UI_SetActiveMenu( uiMenuCommand_t menu ) { Menus_ActivateByName("team"); return; case UIMENU_POSTGAME: - //trap_Cvar_Set( "sv_killserver", "1" ); + trap_Cvar_Set( "sv_killserver", "1" ); trap_Key_SetCatcher( KEYCATCH_UI ); if (uiInfo.inGameLoad) { UI_LoadNonIngame(); -- cgit