diff options
author | rubidium <rubidium@openttd.org> | 2007-09-22 23:55:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-22 23:55:34 +0000 |
commit | 240285b8d85be6ef852639073e5e2625e61b71b0 (patch) | |
tree | 5340ffd36488542b738acc4e6c6c80a223189d8a /src/industry_gui.cpp | |
parent | aa020847af7b31bbbcb665b3ef9463c26b6bc339 (diff) | |
download | openttd-240285b8d85be6ef852639073e5e2625e61b71b0.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.cpp | 3 |
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(); } } } |