| 1648 | } |
| 1649 | |
| 1650 | void 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 | |
| 1666 | void CGame::RelayServer(const char *ip, int port, uint8_t *gameSeed) |
| 1667 | { |
no test coverage detected