1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix issue with kick message not being received

This commit is contained in:
zsilencer
2016-09-13 22:54:02 -06:00
parent 931fc59506
commit dfc100f15e

View File

@@ -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)