(svn r11543) -Codechange: Give a more adequate message when trying to place an industry required to be built over a house on any other type of tiles.

In reference to FS#1492, and other "bugs" like that one
This commit is contained in:
belugas
2007-12-01 01:31:05 +00:00
parent 6b68c6557b
commit aa0d37854d
2 changed files with 2 additions and 1 deletions

View File

@@ -1238,7 +1238,7 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable
if (ind_behav & (INDUSTRYBEH_ONLY_INTOWN | INDUSTRYBEH_TOWN1200_MORE)) {
if (!IsTileType(cur_tile, MP_HOUSE)) {
_error_message = STR_029D_CAN_ONLY_BE_BUILT_IN_TOWNS;
_error_message = STR_INDUSTRY_MUST_BE_BUILT_ON_HOUSE;
return false;
}
if (CmdFailed(DoCommand(cur_tile, 0, 0, 0, CMD_LANDSCAPE_CLEAR))) return false;