Mercurial > hg > openttd
changeset 18201:fbfc95479140 draft
(svn r23030) -Fix [FS#4796]: always show a chat message and send an admin packet when a new company is made
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 15 Oct 2011 16:45:18 +0000 |
parents | 4da6f6ff6a67 |
children | f5b712935c89 |
files | src/company_cmd.cpp |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -866,11 +866,9 @@ 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;