Changeset - r27242:3ff2aff79b0e
[Not reviewed]
master
0 2 0
Peter Nelson - 17 months ago 2023-04-25 08:51:19
peter1138@openttd.org
Codechange: Remove STR_COMPANY_MONEY.
2 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/lang/english.txt
Show inline comments
 
@@ -5607,7 +5607,6 @@ STR_JUST_RAW_STRING                     
 
STR_JUST_BIG_RAW_STRING                                         :{BIG_FONT}{RAW_STRING}
 

	
 
# Slightly 'raw' stringcodes with colour or size
 
STR_COMPANY_MONEY                                               :{WHITE}{CURRENCY_LONG}
 
STR_BLACK_DATE_LONG                                             :{BLACK}{DATE_LONG}
 
STR_WHITE_DATE_LONG                                             :{WHITE}{DATE_LONG}
 
STR_SHORT_DATE                                                  :{WHITE}{DATE_TINY}
src/statusbar_gui.cpp
Show inline comments
 
@@ -118,7 +118,7 @@ struct StatusBarWindow : Window {
 
				int64 max_money = UINT32_MAX;
 
				for (const Company *c : Company::Iterate()) max_money = std::max<int64>(c->money, max_money);
 
				SetDParam(0, 100LL * max_money);
 
				d = GetStringBoundingBox(STR_COMPANY_MONEY);
 
				d = GetStringBoundingBox(STR_JUST_CURRENCY_LONG);
 
				break;
 
			}
 

	
 
@@ -150,7 +150,7 @@ struct StatusBarWindow : Window {
 
					const Company *c = Company::GetIfValid(_local_company);
 
					if (c != nullptr) {
 
						SetDParam(0, c->money);
 
						DrawString(tr, STR_COMPANY_MONEY, TC_FROMSTRING, SA_HOR_CENTER);
 
						DrawString(tr, STR_JUST_CURRENCY_LONG, TC_WHITE, SA_HOR_CENTER);
 
					}
 
				}
 
				break;
0 comments (0 inline, 0 general)