changeset 19103:a662e984940f draft

(svn r23957) -Fix [FS#4990]: allow sending chat to pre-active clients as the clients start accepting once they send 'map ok' to the server, which is the same moment we change their status to pre-active
author rubidium <rubidium@openttd.org>
date Thu, 16 Feb 2012 20:44:03 +0000
parents 4aa95c3d5f06
children 84b69a668651
files src/network/network_server.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -701,7 +701,7 @@
  */
 NetworkRecvStatus ServerNetworkGameSocketHandler::SendChat(NetworkAction action, ClientID client_id, bool self_send, const char *msg, int64 data)
 {
-	if (this->status != STATUS_ACTIVE) return NETWORK_RECV_STATUS_OKAY;
+	if (this->status < STATUS_PRE_ACTIVE) return NETWORK_RECV_STATUS_OKAY;
 
 	Packet *p = new Packet(PACKET_SERVER_CHAT);