forked from mirror/OpenTTD
(svn r23030) -Fix [FS#4796]: always show a chat message and send an admin packet when a new company is made
This commit is contained in:
@@ -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);
|
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 */
|
/* Announce new company on network. */
|
||||||
if (old_playas == COMPANY_SPECTATOR) {
|
NetworkAdminCompanyInfo(c, true);
|
||||||
NetworkAdminCompanyInfo(c, true);
|
NetworkServerSendChat(NETWORK_ACTION_COMPANY_NEW, DESTTYPE_BROADCAST, 0, "", ci->client_id, ci->client_playas + 1);
|
||||||
NetworkServerSendChat(NETWORK_ACTION_COMPANY_NEW, DESTTYPE_BROADCAST, 0, "", ci->client_id, ci->client_playas + 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif /* ENABLE_NETWORK */
|
#endif /* ENABLE_NETWORK */
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user