Make the stream labeling in tuimenu identical to guimenu

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2789 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-11-16 23:19:55 +00:00
parent 3098def6c2
commit 5b85ffc865

View file

@ -4347,9 +4347,10 @@ void Menu_Draw(cluster_t *cluster, viewer_t *viewer)
min+=20; min+=20;
for (; sv && i < min; sv = sv->next, i++) for (; sv && i < min; sv = sv->next, i++)
{ {
Info_ValueForKey(sv->serverinfo, "hostname", str, sizeof(str)); //Info_ValueForKey(sv->serverinfo, "hostname", str, sizeof(str));
if (sv->parsingconnectiondata || !sv->modellist[1].name[0]) //if (sv->parsingconnectiondata || !sv->modellist[1].name[0])
snprintf(str, sizeof(str), "%s", sv->server); // snprintf(str, sizeof(str), "%s", sv->server);
snprintf(str, sizeof(str), "%s", *sv->hostname?sv->hostname:sv->server);
if (i == viewer->menuop) if (i == viewer->menuop)
for (s = (unsigned char *)str; *s; s++) for (s = (unsigned char *)str; *s; s++)