summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-22 23:55:34 +0000
committerrubidium <rubidium@openttd.org>2007-09-22 23:55:34 +0000
commit08c5765c0ba34ccb2aee245fbd354205e8cffb64 (patch)
tree5340ffd36488542b738acc4e6c6c80a223189d8a /src/industry_gui.cpp
parentb1fa49d3fa0d7e4a271bd6caa73ebf058aa9d7e9 (diff)
downloadopenttd-08c5765c0ba34ccb2aee245fbd354205e8cffb64.tar.xz
(svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 12f985457..76b9a8fea 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -503,7 +503,10 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
StringID message = GetGRFStringID(ind->grf_prop.grffile->grfid, 0xD000 + callback_res);
if (message != STR_NULL && message != STR_UNDEFINED) {
y += 10;
+
+ PrepareTextRefStackUsage();
DrawString(2, y, message, 0);
+ StopTextRefStackUsage();
}
}
}