equal
deleted
inserted
replaced
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; |