summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-12 18:32:04 +0000
committerrubidium <rubidium@openttd.org>2007-11-12 18:32:04 +0000
commit9d85d9d41fb5e74fd2a9248b2394a4be3cbd3708 (patch)
tree631dd66241a92911b8314b0d62b3a5ffd50f829e /src/industry_cmd.cpp
parent04925c3f12b69cfa3ef4938dbac76783e70d17b0 (diff)
downloadopenttd-9d85d9d41fb5e74fd2a9248b2394a4be3cbd3708.tar.xz
(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.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}