MCPcopy Create free account
hub / github.com/crossuo/crossuo / ServerSelection

Method ServerSelection

src/CrossUO.cpp:1650–1664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1648}
1649
1650void CGame::ServerSelection(int pos)
1651{
1652 InitScreen(GS_SERVER_CONNECT);
1653 Process(true);
1654 CServer *server = g_ServerList.Select(pos);
1655 if (server != nullptr)
1656 {
1657 auto name = g_ServerList.GetSelectedServer()->Name;
1658 g_ServerList.LastServerName = name;
1659 static auto sn = FixServerName(name);
1660 const char *data = sn.c_str();
1661 PLUGIN_EVENT(UOMSG_SET_SERVER_NAME, data);
1662 CPacketSelectServer((uint8_t)server->Index).Send();
1663 }
1664}
1665
1666void CGame::RelayServer(const char *ip, int port, uint8_t *gameSeed)
1667{

Callers 2

ParsePacketMethod · 0.80
ProcessSmoothActionMethod · 0.80

Calls 5

CPacketSelectServerClass · 0.85
GetSelectedServerMethod · 0.80
c_strMethod · 0.80
SelectMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected