From 9d85d9d41fb5e74fd2a9248b2394a4be3cbd3708 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 12 Nov 2007 18:32:04 +0000 Subject: (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. --- src/industry_cmd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/industry_cmd.cpp') diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 222c4530c..1abec8cf6 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -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); } -- cgit v1.2.3-70-g09d2