summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-11-11 00:04:52 +0000
committerglx <glx@openttd.org>2007-11-11 00:04:52 +0000
commitdf35372b9b7fee9bd2a7510ff129fcd4942a13a9 (patch)
treef5b220d7bfd506e89a769bfdac5c32a2eec50246 /src/industry_cmd.cpp
parent0c3364e2413faa330a8231e219036012209d52fe (diff)
downloadopenttd-df35372b9b7fee9bd2a7510ff129fcd4942a13a9.tar.xz
(svn r11402) -Fix [FS#1382]: incorrect handling of industry behaviour 'must be in town with population large than 1200'
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 621495b94..0a7e6a502 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1233,7 +1233,7 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable
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_029D_CAN_ONLY_BE_BUILT_IN_TOWNS;
return false;