Skip to content

Commit 011d1fa

Browse files
committed
docs: Add comments
1 parent a3f4609 commit 011d1fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Upgrade/ReplaceObjectUpgrade.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ void ReplaceObjectUpgrade::upgradeImplementation( )
118118
{
119119
replacementObject->getControllingPlayer()->onStructureConstructionComplete(NULL, replacementObject, FALSE);
120120

121+
// TheSuperHackers @bugfix Stubbjax 26/05/2025 If the old object was selected, select the new one.
121122
if (oldObjectSelected)
122123
{
123124
GameMessage* msg = TheMessageStream->appendMessage(GameMessage::MSG_CREATE_SELECTED_GROUP_NO_SOUND);
@@ -126,6 +127,7 @@ void ReplaceObjectUpgrade::upgradeImplementation( )
126127
TheInGameUI->selectDrawable(replacementObject->getDrawable());
127128
}
128129

130+
// TheSuperHackers @bugfix Stubbjax 26/05/2025 If the old object was grouped, group the new one.
129131
if (oldObjectSquadNumber != NO_HOTKEY_SQUAD)
130132
{
131133
if (replacementObject->isLocallyControlled())

0 commit comments

Comments
 (0)