1
0
Fork 0

Change: Don't display current balance if infinite money is on

pull/11902/head
merni-ns 2024-01-28 01:48:14 +05:30
parent ff11e9bfcc
commit 0c88b99e3b
2 changed files with 3 additions and 0 deletions

View File

@ -826,6 +826,7 @@ STR_STATUSBAR_AUTOSAVE :{RED}AUTOSAVE
STR_STATUSBAR_SAVING_GAME :{RED}* * SAVING GAME * *
STR_STATUSBAR_SPECTATOR :{WHITE}(spectator)
STR_STATUSBAR_INFINITE_MONEY :{WHITE}(infinite money)
# News message history
STR_MESSAGE_HISTORY :{WHITE}Message History

View File

@ -123,6 +123,8 @@ struct StatusBarWindow : Window {
case WID_S_RIGHT: {
if (_local_company == COMPANY_SPECTATOR) {
DrawString(tr, STR_STATUSBAR_SPECTATOR, TC_FROMSTRING, SA_HOR_CENTER);
} else if (_settings_game.difficulty.infinite_money) {
DrawString(tr, STR_STATUSBAR_INFINITE_MONEY, TC_FROMSTRING, SA_HOR_CENTER);
} else {
/* Draw company money, if any */
const Company *c = Company::GetIfValid(_local_company);