Changeset - r8054:59ce447c2bdb
[Not reviewed]
master
0 1 0
glx - 16 years ago 2007-12-10 17:26:49
glx@openttd.org
(svn r11615) -Fix (r11609): temperate banks can only be built in towns (over a house)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1233,13 +1233,13 @@ static bool CheckIfIndustryTilesAreFree(
 
				if (!PerformIndustryTileSlopeCheck(tile, cur_tile, its, type, gfx, itspec_index)) return false;
 
			} else {
 
				Slope tileh = GetTileSlope(cur_tile, NULL);
 
				refused_slope |= IsSlopeRefused(tileh, its->slopes_refused);
 
			}
 

	
 
			if (ind_behav & (INDUSTRYBEH_ONLY_INTOWN)) {
 
			if (ind_behav & (INDUSTRYBEH_ONLY_INTOWN | INDUSTRYBEH_TOWN1200_MORE)) {
 
				if (!IsTileType(cur_tile, MP_HOUSE)) {
 
					_error_message = STR_030D_CAN_ONLY_BE_BUILT_IN_TOWNS;
 
					return false;
 
				}
 
				if (CmdFailed(DoCommand(cur_tile, 0, 0, 0, CMD_LANDSCAPE_CLEAR))) return false;
 
			} else if ((ind_behav & INDUSTRYBEH_ONLY_NEARTOWN) == 0 || !IsTileType(cur_tile, MP_HOUSE)) {
0 comments (0 inline, 0 general)