1
0
Fork 0

Codechange: Remove STR_COMPANY_MONEY.

pull/10765/head
Peter Nelson 2023-04-25 09:51:19 +01:00 committed by PeterN
parent f1d0a26324
commit a2d7642195
2 changed files with 2 additions and 3 deletions

View File

@ -5607,7 +5607,6 @@ STR_JUST_RAW_STRING :{RAW_STRING}
STR_JUST_BIG_RAW_STRING :{BIG_FONT}{RAW_STRING} STR_JUST_BIG_RAW_STRING :{BIG_FONT}{RAW_STRING}
# Slightly 'raw' stringcodes with colour or size # Slightly 'raw' stringcodes with colour or size
STR_COMPANY_MONEY :{WHITE}{CURRENCY_LONG}
STR_BLACK_DATE_LONG :{BLACK}{DATE_LONG} STR_BLACK_DATE_LONG :{BLACK}{DATE_LONG}
STR_WHITE_DATE_LONG :{WHITE}{DATE_LONG} STR_WHITE_DATE_LONG :{WHITE}{DATE_LONG}
STR_SHORT_DATE :{WHITE}{DATE_TINY} STR_SHORT_DATE :{WHITE}{DATE_TINY}

View File

@ -118,7 +118,7 @@ struct StatusBarWindow : Window {
int64 max_money = UINT32_MAX; int64 max_money = UINT32_MAX;
for (const Company *c : Company::Iterate()) max_money = std::max<int64>(c->money, max_money); for (const Company *c : Company::Iterate()) max_money = std::max<int64>(c->money, max_money);
SetDParam(0, 100LL * max_money); SetDParam(0, 100LL * max_money);
d = GetStringBoundingBox(STR_COMPANY_MONEY); d = GetStringBoundingBox(STR_JUST_CURRENCY_LONG);
break; break;
} }
@ -150,7 +150,7 @@ struct StatusBarWindow : Window {
const Company *c = Company::GetIfValid(_local_company); const Company *c = Company::GetIfValid(_local_company);
if (c != nullptr) { if (c != nullptr) {
SetDParam(0, c->money); 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; break;