src/industry_cmd.cpp
changeset 6943 1914f26aee04
parent 6910 4e5e2247bf53
child 6950 14ecb0acdfb4
equal deleted inserted replaced
6942:9a0a07c109d0 6943:1914f26aee04
   334 		SetDParamX(td->dparam, 0, td->str);
   334 		SetDParamX(td->dparam, 0, td->str);
   335 		td->str = STR_2058_UNDER_CONSTRUCTION;
   335 		td->str = STR_2058_UNDER_CONSTRUCTION;
   336 	}
   336 	}
   337 }
   337 }
   338 
   338 
   339 static int32 ClearTile_Industry(TileIndex tile, byte flags)
   339 static CommandCost ClearTile_Industry(TileIndex tile, byte flags)
   340 {
   340 {
   341 	Industry *i = GetIndustryByTile(tile);
   341 	Industry *i = GetIndustryByTile(tile);
   342 	const IndustrySpec *indspec = GetIndustrySpec(i->type);
   342 	const IndustrySpec *indspec = GetIndustrySpec(i->type);
   343 
   343 
   344 	/* water can destroy industries
   344 	/* water can destroy industries
  1467  * @param flags of operations to conduct
  1467  * @param flags of operations to conduct
  1468  * @param p1 industry type see build_industry.h and see industry.h
  1468  * @param p1 industry type see build_industry.h and see industry.h
  1469  * @param p2 unused
  1469  * @param p2 unused
  1470  * @return index of the newly create industry, or CMD_ERROR if it failed
  1470  * @return index of the newly create industry, or CMD_ERROR if it failed
  1471  */
  1471  */
  1472 int32 CmdBuildIndustry(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
  1472 CommandCost CmdBuildIndustry(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
  1473 {
  1473 {
  1474 	int num;
  1474 	int num;
  1475 	const IndustryTileTable * const *itt;
  1475 	const IndustryTileTable * const *itt;
  1476 	const IndustryTileTable *it;
  1476 	const IndustryTileTable *it;
  1477 	const IndustrySpec *indspec;
  1477 	const IndustrySpec *indspec;