|
@@ -615,12 +615,13 @@ void CompaniesYearlyLoop()
|
|
|
* @param p1 packed data
|
|
|
* - bits 16-31 = engine group
|
|
|
* @param p2 packed data
|
|
|
* - bits 0-15 = old engine type
|
|
|
* - bits 16-31 = new engine type
|
|
|
* @param text unused
|
|
|
* @return the cost of this operation or an error
|
|
|
*/
|
|
|
CommandCost CmdSetAutoReplace(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
|
|
{
|
|
|
Company *c = Company::GetIfValid(_current_company);
|
|
|
if (c == NULL) return CMD_ERROR;
|
|
|
|
|
@@ -677,12 +678,15 @@ void CompanyNewsInformation::FillData(co
|
|
|
* - p1 = 1 - create a new AI company
|
|
|
* - p1 = 2 - delete a company. Company is identified by p2
|
|
|
* @param p2 various functionality, dictated by p1
|
|
|
* - p1 = 0 - ClientID of the newly created client
|
|
|
* - p1 = 1 - CompanyID to start AI (INVALID_COMPANY for first available)
|
|
|
* - p1 = 2 - CompanyID of the that is getting deleted
|
|
|
* @param text unused
|
|
|
* @return the cost of this operation or an error
|
|
|
*
|
|
|
* @todo In the case of p1=0, create new company, the clientID of the new client is in parameter
|
|
|
* p2. This parameter is passed in at function DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_COMMAND)
|
|
|
* on the server itself. First of all this is unbelievably ugly; second of all, well,
|
|
|
* it IS ugly! <b>Someone fix this up :)</b> So where to fix?@n
|
|
|
* @arg - network_server.c:838 DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_COMMAND)@n
|
|
|
* @arg - network_client.c:536 DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_MAP) from where the map has been received
|