From 5b85ffc86564ea71b9d64b5a283b25022b6c32ab Mon Sep 17 00:00:00 2001 From: Molgrum Date: Fri, 16 Nov 2007 23:19:55 +0000 Subject: [PATCH] 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 --- fteqtv/qw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fteqtv/qw.c b/fteqtv/qw.c index 46023c68e..40cc2784a 100644 --- a/fteqtv/qw.c +++ b/fteqtv/qw.c @@ -4347,9 +4347,10 @@ void Menu_Draw(cluster_t *cluster, viewer_t *viewer) min+=20; for (; sv && i < min; sv = sv->next, i++) { - Info_ValueForKey(sv->serverinfo, "hostname", str, sizeof(str)); - if (sv->parsingconnectiondata || !sv->modellist[1].name[0]) - snprintf(str, sizeof(str), "%s", sv->server); + //Info_ValueForKey(sv->serverinfo, "hostname", str, sizeof(str)); + //if (sv->parsingconnectiondata || !sv->modellist[1].name[0]) + // snprintf(str, sizeof(str), "%s", sv->server); + snprintf(str, sizeof(str), "%s", *sv->hostname?sv->hostname:sv->server); if (i == viewer->menuop) for (s = (unsigned char *)str; *s; s++)