forked from rosebudai/OpenRCT2-Web
Fix issue with kick message not being received
This commit is contained in:
1 parent
931fc59506
commit
dfc100f15e
1 file changed
+1
-1
@@ -589,7 +589,6 @@ void Network::KickPlayer(int playerId)
|
||||
format_string(str_disconnect_msg, STR_MULTIPLAYER_KICKED_REASON, NULL);
|
||||
Server_Send_SETDISCONNECTMSG(*(*it), str_disconnect_msg);
|
||||
(*it)->Socket->Disconnect();
|
||||
(*it)->SendQueuedPackets();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1044,6 +1043,7 @@ void Network::Server_Send_SETDISCONNECTMSG(NetworkConnection& connection, const
|
||||
*packet << (uint32)NETWORK_COMMAND_SETDISCONNECTMSG;
|
||||
packet->WriteString(msg);
|
||||
connection.QueuePacket(std::move(packet));
|
||||
connection.SendQueuedPackets();
|
||||
}
|
||||
|
||||
void Network::Server_Send_GAMEINFO(NetworkConnection& connection)
|
||||
|
||||
Reference in new issue
Block a user