mirror of https://github.com/OpenTTD/OpenTTD
(svn r11371) -Fix [FS#1396]: the industry protection only kicked in when it should not kick in.
parent
c393a28028
commit
a416f540fa
|
@ -1841,7 +1841,7 @@ static bool CheckIndustryCloseDownProtection(IndustryType type)
|
||||||
|
|
||||||
/* oil wells (or the industries with that flag set) are always allowed to closedown */
|
/* 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;
|
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
|
/** Change industry production or do closure
|
||||||
|
|
Loading…
Reference in New Issue