From 8e5c4b52cdfd8c067caa9dbf2f1ca78e20893ab9 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 14 Apr 2003 12:18:45 +0000 Subject: [PATCH] removed special cases for transfusion in server search messages (now prints gamename) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2945 d7cf8633-e32d-0410-b094-e92efae38249 --- menu.c | 7 +------ net_main.c | 12 ++---------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/menu.c b/menu.c index 2f5a7912..00d05a27 100644 --- a/menu.c +++ b/menu.c @@ -3369,7 +3369,6 @@ void M_Menu_Search_f (void) void M_Search_Draw (void) { - const char* string; cachepic_t *p; int x; @@ -3397,11 +3396,7 @@ void M_Search_Draw (void) return; } - if (gamemode == GAME_TRANSFUSION) - string = "No Transfusion servers found"; - else - string = "No Quake servers found"; - M_PrintWhite ((320/2) - ((22*8)/2), 64, string); + M_PrintWhite ((320/2) - ((22*8)/2), 64, va("No %s servers found", gamename)); if ((realtime - searchCompleteTime) < 3.0) return; diff --git a/net_main.c b/net_main.c index b03c4262..51c3f3f4 100644 --- a/net_main.c +++ b/net_main.c @@ -362,12 +362,7 @@ static void PrintSlistTrailer(void) if (hostCacheCount) Con_Printf("== end list ==\n\n"); else - { - if (gamemode == GAME_TRANSFUSION) - Con_Printf("No Transfusion servers found.\n\n"); - else - Con_Printf("No Quake servers found.\n\n"); - } + Con_Printf("No %s servers found.\n\n", gamename); } @@ -378,10 +373,7 @@ void NET_SlistCommon (PollProcedure *sendProcedure, PollProcedure *pollProcedure if (! slistSilent) { - if (gamemode == GAME_TRANSFUSION) - Con_Printf("Looking for Transfusion servers...\n"); - else - Con_Printf("Looking for Quake servers...\n"); + Con_Printf("Looking for %s servers...\n", gamename); PrintSlistHeader(); } -- 2.39.2