summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2019-04-23 21:39:41 +0200
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-04-24 23:04:55 +0200
commit58609e8fa699a82b6619021119bce5e550eb6188 (patch)
treeaafc2ed37397785bfa8d8e14669b0c11779b0021 /src
parent2c67af391bfc3e8dea75a7832ae0588d6b455d28 (diff)
downloadopenttd-58609e8fa699a82b6619021119bce5e550eb6188.tar.xz
Fix: Manager name in company news was being clipped
Diffstat (limited to 'src')
-rw-r--r--src/news_gui.cpp5
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;