Skip to content

Commit 6ffd2bc

Browse files
committed
feat(gui): track money per minute for every player
1 parent 632e1b9 commit 6ffd2bc

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,9 @@ void Player::update()
684684
if (tunnelSystem)
685685
tunnelSystem->healObjects();
686686
#endif
687+
688+
// TheSuperHackers @feature L3-M 01/11/2025 track money per minute for every player, not the local player only
689+
m_money.updateIncomeBucket();
687690
}
688691

689692
//=============================================================================

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,9 @@ void Player::update()
724724
if (tunnelSystem)
725725
tunnelSystem->healObjects();
726726
#endif
727+
728+
// TheSuperHackers @feature L3-M 01/11/2025 track money per minute for every player, not the local player only
729+
m_money.updateIncomeBucket();
727730
}
728731

729732
//=============================================================================

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)