diff options
author | alberth <alberth@openttd.org> | 2013-05-12 19:38:30 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2013-05-12 19:38:30 +0000 |
commit | 1b5b4db690774279149703770e04ea884ed8bf28 (patch) | |
tree | 7bd6cb9630338e70522f842219245b9ed262c851 /src/industry_gui.cpp | |
parent | 7671ea3b43924fe32d7d4b6bfb5fcb79b86512e4 (diff) | |
download | openttd-1b5b4db690774279149703770e04ea884ed8bf28.tar.xz |
(svn r25238) -Feature: Display imminent closure of an industry in its view window.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 9db4a5a94..1b79ebbd0 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -700,6 +700,11 @@ public: bool has_accept = false; char cargo_suffix[3][512]; + if (i->prod_level == PRODLEVEL_CLOSURE) { + DrawString(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, y, STR_INDUSTRY_VIEW_INDUSTRY_ANNOUNCED_CLOSURE); + y += 2 * FONT_HEIGHT_NORMAL; + } + if (HasBit(ind->callback_mask, CBM_IND_PRODUCTION_CARGO_ARRIVAL) || HasBit(ind->callback_mask, CBM_IND_PRODUCTION_256_TICKS)) { GetAllCargoSuffixes(0, CST_VIEW, i, i->type, ind, i->accepts_cargo, cargo_suffix); for (byte j = 0; j < lengthof(i->accepts_cargo); j++) { |