diff options
author | rubidium <rubidium@openttd.org> | 2008-05-13 10:17:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-13 10:17:04 +0000 |
commit | 5d7851e8d63766b15881bafd4940bf89f37b2bdc (patch) | |
tree | 5c7ccb204d4278fc86a352be079b38923bb69dab /src/statusbar_gui.cpp | |
parent | a3d037956f4f1dcde98c30cd8b30f3c9cc626a1b (diff) | |
download | openttd-5d7851e8d63766b15881bafd4940bf89f37b2bdc.tar.xz |
(svn r13065) -Codechange: remove the need for the news string callbacks. Patch by Cirdan.
Diffstat (limited to 'src/statusbar_gui.cpp')
-rw-r--r-- | src/statusbar_gui.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp index 61fd57df0..535636e4c 100644 --- a/src/statusbar_gui.cpp +++ b/src/statusbar_gui.cpp @@ -22,17 +22,10 @@ #include "table/strings.h" #include "table/sprites.h" -extern GetNewsStringCallbackProc * const _get_news_string_callback[]; - static bool DrawScrollingStatusText(const NewsItem *ni, int pos, int width) { - StringID str; - if (ni->display_mode == NM_CALLBACK) { - str = _get_news_string_callback[ni->callback](ni); - } else { - CopyInDParam(0, ni->params, lengthof(ni->params)); - str = ni->string_id; - } + CopyInDParam(0, ni->params, lengthof(ni->params)); + StringID str = ni->string_id; char buf[512]; GetString(buf, str, lastof(buf)); |