* Tell that a client moved to another company. * @param client_id The client that moved. * @param company_id The company the client moved to. */
| 796 | * @param company_id The company the client moved to. |
| 797 | */ |
| 798 | NetworkRecvStatus ServerNetworkGameSocketHandler::SendMove(ClientID client_id, CompanyID company_id) |
| 799 | { |
| 800 | Debug(net, 9, "client[{}] SendMove(): client_id={}", this->client_id, client_id); |
| 801 | |
| 802 | auto p = std::make_unique<Packet>(this, PACKET_SERVER_MOVE); |
| 803 | |
| 804 | p->Send_uint32(client_id); |
| 805 | p->Send_uint8(company_id); |
| 806 | this->SendPacket(std::move(p)); |
| 807 | return NETWORK_RECV_STATUS_OKAY; |
| 808 | } |
| 809 | |
| 810 | /** Send an update about the max company/spectator counts. */ |
| 811 | NetworkRecvStatus ServerNetworkGameSocketHandler::SendConfigUpdate() |
no test coverage detected