Send network client desync log messages to server
This commit is contained in:
@@ -569,6 +569,18 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::SendDesyncLog(const std::strin
|
||||
return NETWORK_RECV_STATUS_OKAY;
|
||||
}
|
||||
|
||||
/** Send an error-packet over the network */
|
||||
NetworkRecvStatus ClientNetworkGameSocketHandler::SendDesyncMessage(const char *msg)
|
||||
{
|
||||
Packet *p = new Packet(PACKET_CLIENT_DESYNC_MSG);
|
||||
p->Send_uint32(_date);
|
||||
p->Send_uint16(_date_fract);
|
||||
p->Send_uint8(_tick_skip_counter);
|
||||
p->Send_string(msg);
|
||||
my_client->SendPacket(p);
|
||||
return NETWORK_RECV_STATUS_OKAY;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tell the server that we like to change the password of the company.
|
||||
* @param password The new password.
|
||||
@@ -1438,6 +1450,12 @@ void NetworkClientSendChat(NetworkAction action, DestType type, int dest, const
|
||||
MyClient::SendChat(action, type, dest, msg, data);
|
||||
}
|
||||
|
||||
|
||||
void NetworkClientSendDesyncMsg(const char *msg)
|
||||
{
|
||||
MyClient::SendDesyncMessage(msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set/Reset company password on the client side.
|
||||
* @param password Password to be set.
|
||||
|
Reference in New Issue
Block a user