equal
deleted
inserted
replaced
1492 if (--num < 0) return_cmd_error(STR_0239_SITE_UNSUITABLE); |
1492 if (--num < 0) return_cmd_error(STR_0239_SITE_UNSUITABLE); |
1493 } while (!CheckIfIndustryTilesAreFree(tile, it = itt[num], p1)); |
1493 } while (!CheckIfIndustryTilesAreFree(tile, it = itt[num], p1)); |
1494 |
1494 |
1495 if (CreateNewIndustryHelper(tile, p1, flags, indspec, it) == NULL) return CMD_ERROR; |
1495 if (CreateNewIndustryHelper(tile, p1, flags, indspec, it) == NULL) return CMD_ERROR; |
1496 |
1496 |
1497 return (_price.build_industry >> 5) * indspec->cost_multiplier; |
1497 return (_price.build_industry >> 8) * indspec->cost_multiplier; |
1498 } |
1498 } |
1499 |
1499 |
1500 |
1500 |
1501 Industry *CreateNewIndustry(TileIndex tile, IndustryType type) |
1501 Industry *CreateNewIndustry(TileIndex tile, IndustryType type) |
1502 { |
1502 { |