summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-08-24 11:08:35 +0000
committerTim Angus <tim@ngus.net>2007-08-24 11:08:35 +0000
commit0dfbff21e82c091f9befd4489ad9d7de6908c6b3 (patch)
treee52c00a4f1a2e169055877832896f89529fbbe00 /src
parentd6cbf3366e63e4e4333e49377ee994d26b266a6c (diff)
* 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
Diffstat (limited to 'src')
-rw-r--r--src/client/cl_main.c5
-rw-r--r--src/ui/ui_main.c10
2 files changed, 7 insertions, 8 deletions
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; i<count; i++)
buffptr += sprintf( buffptr, " %s", Cmd_Argv(i) );
- // if we are a demo, automatically add a "demo" keyword
- if ( Cvar_VariableValue( "fs_restrict" ) ) {
- buffptr += sprintf( buffptr, " demo" );
- }
-
NET_OutOfBandPrint( NS_SERVER, to, command );
}
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index ea7f84f4..99d8f645 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -2219,12 +2219,16 @@ static void UI_DrawSelectedPlayer(rectDef_t *rect, float scale, vec4_t color, in
static void UI_DrawServerRefreshDate(rectDef_t *rect, float scale, vec4_t color, int textStyle) {
if (uiInfo.serverStatus.refreshActive) {
vec4_t lowLight, newColor;
+ int numServers = trap_LAN_GetServerCount( ui_netSource.integer );
+
lowLight[0] = 0.8 * color[0];
lowLight[1] = 0.8 * color[1];
lowLight[2] = 0.8 * color[2];
lowLight[3] = 0.8 * color[3];
LerpColor(color,lowLight,newColor,0.5+0.5*sin(uiInfo.uiDC.realTime / PULSE_DIVISOR));
- Text_Paint(rect->x, 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();