summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2013-05-12 19:38:30 +0000
committeralberth <alberth@openttd.org>2013-05-12 19:38:30 +0000
commit1b5b4db690774279149703770e04ea884ed8bf28 (patch)
tree7bd6cb9630338e70522f842219245b9ed262c851 /src/industry_cmd.cpp
parent7671ea3b43924fe32d7d4b6bfb5fcb79b86512e4 (diff)
downloadopenttd-1b5b4db690774279149703770e04ea884ed8bf28.tar.xz
(svn r25238) -Feature: Display imminent closure of an industry in its view window.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 69d83ba14..c29a00820 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -2600,6 +2600,7 @@ static void ChangeIndustryProduction(Industry *i, bool monthly)
/* Close if needed and allowed */
if (closeit && !CheckIndustryCloseDownProtection(i->type)) {
i->prod_level = PRODLEVEL_CLOSURE;
+ SetWindowDirty(WC_INDUSTRY_VIEW, i->index);
str = indspec->closure_text;
}