diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-04-23 21:39:41 +0200 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-04-24 23:04:55 +0200 |
commit | 58609e8fa699a82b6619021119bce5e550eb6188 (patch) | |
tree | aafc2ed37397785bfa8d8e14669b0c11779b0021 | |
parent | 2c67af391bfc3e8dea75a7832ae0588d6b455d28 (diff) | |
download | openttd-58609e8fa699a82b6619021119bce5e550eb6188.tar.xz |
Fix: Manager name in company news was being clipped
-rw-r--r-- | src/news_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 7aee32cac..be83b374c 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -331,6 +331,11 @@ struct NewsWindow : Window { *size = maxdim(*size, GetSpriteSize(SPR_GRADIENT)); break; + case WID_N_MGR_NAME: + SetDParamStr(0, static_cast<const CompanyNewsInformation *>(this->ni->free_data)->president_name); + str = STR_JUST_RAW_STRING; + break; + case WID_N_MESSAGE: CopyInDParam(0, this->ni->params, lengthof(this->ni->params)); str = this->ni->string_id; |