Changeset - r7987:4acc88f09a27
[Not reviewed]
master
0 2 0
belugas - 16 years ago 2007-12-01 01:31:05
belugas@openttd.org
(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
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1238,7 +1238,7 @@ static bool CheckIfIndustryTilesAreFree(
 

	
 
			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;
src/lang/english.txt
Show inline comments
 
@@ -749,6 +749,7 @@ STR_PLAY_HEIGHTMAP_HINT                 
 
STR_QUIT_SCENARIO_QUERY                                         :{YELLOW}Are you sure you want to quit this scenario ?
 
STR_029C_QUIT_EDITOR                                            :{WHITE}Quit Editor
 
STR_029D_CAN_ONLY_BE_BUILT_IN_TOWNS                             :{WHITE}...can only be built in towns with a population of at least 1200
 
STR_INDUSTRY_MUST_BE_BUILT_ON_HOUSE                             :{WHITE}...can only be built over a house
 
STR_029E_MOVE_THE_STARTING_DATE                                 :{BLACK}Move the starting date backward 1 year
 
STR_029F_MOVE_THE_STARTING_DATE                                 :{BLACK}Move the starting date forward 1 year
 
STR_02A0_ENDS_OF_BRIDGE_MUST_BOTH                               :{WHITE}...ends of bridge must both be on land
0 comments (0 inline, 0 general)