mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-12 01:24:54 +00:00
Codechange: Remove STR_COMPANY_MONEY.
This commit is contained in:
parent
f1d0a26324
commit
a2d7642195
@ -5607,7 +5607,6 @@ STR_JUST_RAW_STRING :{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}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user