Grab server name from connectedservername, instead of netbuffer->u.serverinfo.servername (fixes garbage server name)

Yeah it will be blank, but preparation for whenever the server's name is stored in that variable
This commit is contained in:
SteelT 2022-09-24 18:20:58 -04:00
parent f3c780d732
commit b5e9de2e69

View file

@ -2095,7 +2095,7 @@ static void CL_ConnectToServer(void)
// It works... sometimes but not always which is weird.
if (joinedIP[0]) // false if we have "" which is \0
M_AddToJoinedIPs(joinedIP, netbuffer->u.serverinfo.servername);
M_AddToJoinedIPs(joinedIP, connectedservername);
joinedIP[0] = '\0'; // And empty this for good measure regardless of whether or not we actually used it.