@@ -1881,34 +1881,35 @@ void InGameUI::update( void )
18811881 {
18821882 Money *money = moneyPlayer->getMoney ();
18831883 Bool showIncome = TheGlobalData->m_showMoneyPerMinute ;
1884- if (!showIncome)
1884+ Bool canShowIncome = TheGlobalData->m_enablePlayerMoneyPerMinute || TheControlBar->isObserverControlBarOn ();
1885+ if (showIncome && canShowIncome)
18851886 {
1887+ // TheSuperHackers @feature L3-M 21/08/2025 player money per minute
18861888 UnsignedInt currentMoney = money->countMoney ();
1887- if ( lastMoney != currentMoney )
1889+ UnsignedInt cashPerMin = money->getCashPerMinute ();
1890+ if ( lastMoney != currentMoney || lastIncome != cashPerMin )
18881891 {
18891892 UnicodeString buffer;
1893+ UnicodeString moneyStr = formatMoneyValue (currentMoney);
1894+ UnicodeString incomeStr = formatIncomeValue (cashPerMin);
18901895
1891- buffer.format (TheGameText->fetch ( " GUI:ControlBarMoneyDisplay " ), currentMoney );
1892- GadgetStaticTextSetText ( moneyWin, buffer );
1896+ buffer.format (TheGameText->FETCH_OR_SUBSTITUTE_FORMAT ( " GUI:ControlBarMoneyDisplayIncome " , L" $ %ls +%ls/min " , moneyStr. str ( ), incomeStr. str ()) );
1897+ GadgetStaticTextSetText (moneyWin, buffer);
18931898 lastMoney = currentMoney;
1894-
1899+ lastIncome = cashPerMin;
18951900 }
18961901 }
18971902 else
18981903 {
1899- // TheSuperHackers @feature L3-M 21/08/2025 player money per minute
19001904 UnsignedInt currentMoney = money->countMoney ();
1901- UnsignedInt cashPerMin = money->getCashPerMinute ();
1902- if ( lastMoney != currentMoney || lastIncome != cashPerMin )
1905+ if ( lastMoney != currentMoney )
19031906 {
19041907 UnicodeString buffer;
1905- UnicodeString moneyStr = formatMoneyValue (currentMoney);
1906- UnicodeString incomeStr = formatIncomeValue (cashPerMin);
19071908
1908- buffer.format (TheGameText->FETCH_OR_SUBSTITUTE_FORMAT ( " GUI:ControlBarMoneyDisplayIncome " , L" $ %ls +%ls/min " , moneyStr. str ( ), incomeStr. str ()) );
1909- GadgetStaticTextSetText (moneyWin, buffer);
1909+ buffer.format (TheGameText->fetch ( " GUI:ControlBarMoneyDisplay " ), currentMoney );
1910+ GadgetStaticTextSetText ( moneyWin, buffer );
19101911 lastMoney = currentMoney;
1911- lastIncome = cashPerMin;
1912+
19121913 }
19131914 }
19141915 moneyWin->winHide (FALSE );
0 commit comments