equal
deleted
inserted
replaced
1686 SetDParam(1, STR_TOWN); |
1686 SetDParam(1, STR_TOWN); |
1687 SetDParam(2, ind->town->index); |
1687 SetDParam(2, ind->town->index); |
1688 } else { |
1688 } else { |
1689 SetDParam(1, ind->town->index); |
1689 SetDParam(1, ind->town->index); |
1690 } |
1690 } |
1691 AddNewsItem(indspec->new_industry_text, NS_OPENCLOSE, ind->xy, 0); |
1691 AddNewsItem(indspec->new_industry_text, NS_INDUSTRY_OPEN, ind->xy, 0); |
1692 } |
1692 } |
1693 |
1693 |
1694 return CommandCost(EXPENSES_OTHER, indspec->GetConstructionCost()); |
1694 return CommandCost(EXPENSES_OTHER, indspec->GetConstructionCost()); |
1695 } |
1695 } |
1696 |
1696 |
1888 SetDParam(2, ind->town->index); |
1888 SetDParam(2, ind->town->index); |
1889 } else { |
1889 } else { |
1890 SetDParam(1, ind->town->index); |
1890 SetDParam(1, ind->town->index); |
1891 } |
1891 } |
1892 AddNewsItem(ind_spc->new_industry_text, |
1892 AddNewsItem(ind_spc->new_industry_text, |
1893 NS_OPENCLOSE, ind->xy, 0); |
1893 NS_INDUSTRY_OPEN, ind->xy, 0); |
1894 } |
1894 } |
1895 |
1895 |
1896 /** |
1896 /** |
1897 * Protects an industry from closure if the appropriate flags and conditions are met |
1897 * Protects an industry from closure if the appropriate flags and conditions are met |
1898 * INDUSTRYBEH_CANCLOSE_LASTINSTANCE must be set (which, by default, it is not) and the |
1898 * INDUSTRYBEH_CANCLOSE_LASTINSTANCE must be set (which, by default, it is not) and the |
2203 |
2203 |
2204 if (!suppress_message && str != STR_NULL) { |
2204 if (!suppress_message && str != STR_NULL) { |
2205 NewsSubtype ns; |
2205 NewsSubtype ns; |
2206 /* Compute news category */ |
2206 /* Compute news category */ |
2207 if (closeit) { |
2207 if (closeit) { |
2208 ns = NS_OPENCLOSE; |
2208 ns = NS_INDUSTRY_CLOSE; |
2209 } else { |
2209 } else { |
2210 switch (WhoCanServiceIndustry(i)) { |
2210 switch (WhoCanServiceIndustry(i)) { |
2211 case 0: ns = NS_INDUSTRY_NOBODY; break; |
2211 case 0: ns = NS_INDUSTRY_NOBODY; break; |
2212 case 1: ns = NS_INDUSTRY_OTHER; break; |
2212 case 1: ns = NS_INDUSTRY_OTHER; break; |
2213 case 2: ns = NS_INDUSTRY_PLAYER; break; |
2213 case 2: ns = NS_INDUSTRY_PLAYER; break; |