Feature: Infinite money mode (#11902)

This commit is contained in:
merni-ns
2024-01-30 23:31:02 +05:30
committed by GitHub
parent 7acf78964f
commit 5a88027a19
15 changed files with 63 additions and 27 deletions

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);