(svn r11420) -Fix [FS#1006]: industry closure news not properly shown when the news item pops up after the industry has been removed from the map.

This commit is contained in:
rubidium
2007-11-12 18:32:04 +00:00
parent 04925c3f12
commit 9d85d9d41f
39 changed files with 118 additions and 114 deletions

View File

@@ -1993,6 +1993,10 @@ static void ChangeIndustryProduction(Industry *i, bool monthly)
SetDParam(0, STR_TOWN);
SetDParam(1, i->town->index);
SetDParam(2, indspec->name);
} else if (closeit) {
SetDParam(0, STR_INDUSTRY_FORMAT);
SetDParam(1, i->town->index);
SetDParam(2, indspec->name);
} else {
SetDParam(0, i->index);
}