Changeset - r7227:23319c1f14d9
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-07-11 08:20:57
rubidium@openttd.org
(svn r10506) -Fix: the (manual) building of banks was always rejected.
1 file changed with 3 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1232,13 +1232,9 @@ static bool CheckIfIndustryTilesAreFree(
 
					_error_message = STR_029D_CAN_ONLY_BE_BUILT_IN_TOWNS;
 
					return false;
 
				}
 
			}
 
			if (ind_behav & INDUSTRYBEH_ONLY_NEARTOWN) {
 
				if (!IsTileType(cur_tile, MP_HOUSE)) goto do_clear;
 
			} else {
 
do_clear:
 
				if (CmdFailed(DoCommand(cur_tile, 0, 0, DC_AUTO, CMD_LANDSCAPE_CLEAR)))
 
					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)) {
 
				if (CmdFailed(DoCommand(cur_tile, 0, 0, DC_AUTO, CMD_LANDSCAPE_CLEAR))) return false;
 
			}
 
		}
 
	} while ((++it)->ti.x != -0x80);
0 comments (0 inline, 0 general)