Skip to content

Commit 7a6402b

Browse files
authored
tweak(gui): Track money per minute for every player (#1773)
1 parent 3c30024 commit 7a6402b

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

Generals/Code/GameEngine/Source/Common/RTS/Player.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,8 @@ void Player::update()
684684
if (tunnelSystem)
685685
tunnelSystem->healObjects();
686686
#endif
687+
688+
m_money.updateIncomeBucket();
687689
}
688690

689691
//=============================================================================

Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,6 @@ void InGameUI::update( void )
18981898
else
18991899
{
19001900
// TheSuperHackers @feature L3-M 21/08/2025 player money per minute
1901-
money->updateIncomeBucket();
19021901
UnsignedInt currentMoney = money->countMoney();
19031902
UnsignedInt cashPerMin = money->getCashPerMinute();
19041903
if ( lastMoney != currentMoney || lastIncome != cashPerMin )

GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,8 @@ void Player::update()
724724
if (tunnelSystem)
725725
tunnelSystem->healObjects();
726726
#endif
727+
728+
m_money.updateIncomeBucket();
727729
}
728730

729731
//=============================================================================

GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,6 @@ void InGameUI::update( void )
19541954
else
19551955
{
19561956
// TheSuperHackers @feature L3-M 21/08/2025 player money per minute
1957-
money->updateIncomeBucket();
19581957
UnsignedInt currentMoney = money->countMoney();
19591958
UnsignedInt cashPerMin = money->getCashPerMinute();
19601959
if ( lastMoney != currentMoney || lastIncome != cashPerMin )

0 commit comments

Comments
 (0)