changeset 7821:cb66ab662195 draft

(svn r11371) -Fix [FS#1396]: the industry protection only kicked in when it should not kick in.
author rubidium <rubidium@openttd.org>
date Sat, 03 Nov 2007 15:21:26 +0000
parents 5f3f31875341
children 379a15470ab2
files src/industry_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1841,7 +1841,7 @@
 
 	/* 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