diff options
author | rubidium <rubidium@openttd.org> | 2011-10-15 16:45:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-10-15 16:45:18 +0000 |
commit | 16e1314f58fa96915d79ca8419465ab2e5e8639e (patch) | |
tree | ea5a20bab60da2fd4a5e8d7c6bb00ee9f0be7942 | |
parent | 47aaf41d401ba7422f9a6cf4abb43d378e4ccdfd (diff) | |
download | openttd-16e1314f58fa96915d79ca8419465ab2e5e8639e.tar.xz |
(svn r23030) -Fix [FS#4796]: always show a chat message and send an admin packet when a new company is made
-rw-r--r-- | src/company_cmd.cpp | 8 |
1 files 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; |