A quick hack so that inserting in the server list will use the current server's ip and description if connected.

This commit is contained in:
Brian Koropoff 2000-12-24 05:37:24 +00:00
parent 86222ca684
commit 382fe8feff

View file

@ -1165,10 +1165,10 @@ M_MultiPlayer_Key (key)
S_LocalSound ("misc/menu2.wav"); S_LocalSound ("misc/menu2.wav");
if (!slist) { if (!slist) {
m_multip_cursor = 0; m_multip_cursor = 0;
slist = SL_Add (slist, "127.0.0.1", "<BLANK>"); slist = SL_Add (slist, cls.state >= ca_connected ? cls.servername : "127.0.0.1", cls.state == ca_connected ? Info_ValueForKey (cl.serverinfo, "hostname") : "<BLANK>");
} else { } else {
temp = SL_Get_By_Num (slist, m_multip_cursor); temp = SL_Get_By_Num (slist, m_multip_cursor);
slist = SL_InsB (slist, temp, "127.0.0.1", "<BLANK>"); slist = SL_InsB (slist, temp, cls.state >= ca_connected ? cls.servername : "127.0.0.1", cls.state >= ca_connected ? Info_ValueForKey (cl.serverinfo, "hostname") : "<BLANK>");
} }
break; break;
case K_DEL: case K_DEL: