diff options
author | rubidium <rubidium@openttd.org> | 2007-11-03 15:21:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-03 15:21:26 +0000 |
commit | 0b7de36eb2dc8840a7d7da7fce8bf38b96637fff (patch) | |
tree | 04c5f952206e7c94c724ea293306d4c12373771b /src | |
parent | 5a9e2f8d8210c238a009423f414c559467b4540f (diff) | |
download | openttd-0b7de36eb2dc8840a7d7da7fce8bf38b96637fff.tar.xz |
(svn r11371) -Fix [FS#1396]: the industry protection only kicked in when it should not kick in.
Diffstat (limited to 'src')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index a7067702b..f3bf356aa 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1841,7 +1841,7 @@ static bool CheckIndustryCloseDownProtection(IndustryType type) /* oil wells (or the industries with that flag set) are always allowed to closedown */ if (indspec->behaviour & INDUSTRYBEH_DONT_INCR_PROD && _opt.landscape == LT_TEMPERATE) return false; - return (indspec->behaviour & INDUSTRYBEH_CANCLOSE_LASTINSTANCE && GetIndustryTypeCount(type) <= 1); + return (indspec->behaviour & INDUSTRYBEH_CANCLOSE_LASTINSTANCE) == 0 && GetIndustryTypeCount(type) <= 1; } /** Change industry production or do closure |