From a416f540fa37cc55894170c5685a6736a4b7900a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 3 Nov 2007 15:21:26 +0000 Subject: [PATCH] (svn r11371) -Fix [FS#1396]: the industry protection only kicked in when it should not kick in. --- src/industry_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index a7067702b3..f3bf356aa1 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