From 382fe8feffd6b09a9b3a0ba0af5f34d85c5f2d03 Mon Sep 17 00:00:00 2001 From: Brian Koropoff Date: Sun, 24 Dec 2000 05:37:24 +0000 Subject: [PATCH] A quick hack so that inserting in the server list will use the current server's ip and description if connected. --- source/menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/menu.c b/source/menu.c index c17afb8..827f411 100644 --- a/source/menu.c +++ b/source/menu.c @@ -1165,10 +1165,10 @@ M_MultiPlayer_Key (key) S_LocalSound ("misc/menu2.wav"); if (!slist) { m_multip_cursor = 0; - slist = SL_Add (slist, "127.0.0.1", ""); + slist = SL_Add (slist, cls.state >= ca_connected ? cls.servername : "127.0.0.1", cls.state == ca_connected ? Info_ValueForKey (cl.serverinfo, "hostname") : ""); } else { temp = SL_Get_By_Num (slist, m_multip_cursor); - slist = SL_InsB (slist, temp, "127.0.0.1", ""); + slist = SL_InsB (slist, temp, cls.state >= ca_connected ? cls.servername : "127.0.0.1", cls.state >= ca_connected ? Info_ValueForKey (cl.serverinfo, "hostname") : ""); } break; case K_DEL: