From 16e1314f58fa96915d79ca8419465ab2e5e8639e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 15 Oct 2011 16:45:18 +0000 Subject: (svn r23030) -Fix [FS#4796]: always show a chat message and send an admin packet when a new company is made --- src/company_cmd.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index df08fff00..07b8e3f92 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -866,11 +866,9 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 NetworkSendCommand(0, 0, 0, CMD_RENAME_PRESIDENT, NULL, ci->client_name, ci->client_playas); } - /* Announce new company on network, if the client was a SPECTATOR before */ - if (old_playas == COMPANY_SPECTATOR) { - NetworkAdminCompanyInfo(c, true); - NetworkServerSendChat(NETWORK_ACTION_COMPANY_NEW, DESTTYPE_BROADCAST, 0, "", ci->client_id, ci->client_playas + 1); - } + /* Announce new company on network. */ + NetworkAdminCompanyInfo(c, true); + NetworkServerSendChat(NETWORK_ACTION_COMPANY_NEW, DESTTYPE_BROADCAST, 0, "", ci->client_id, ci->client_playas + 1); } #endif /* ENABLE_NETWORK */ break; -- cgit v1.2.3-70-g09d2