]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
removed special cases for transfusion in server search messages (now prints gamename)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Apr 2003 12:18:45 +0000 (12:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Apr 2003 12:18:45 +0000 (12:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2945 d7cf8633-e32d-0410-b094-e92efae38249

menu.c
net_main.c

diff --git a/menu.c b/menu.c
index 2f5a79121034fd9a178eb9ef5f0db8ae5b8d9c8d..00d05a27c597619a8719a564acf274b5ed8e5cc0 100644 (file)
--- 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;
 
index b03c426271b049fface622e18b0cc2e8abedaa80..51c3f3f41012f7f7b23aa247bc2d527eec09a741 100644 (file)
@@ -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();
        }