mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-28 23:02:31 +00:00
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:
parent
86222ca684
commit
382fe8feff
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue