Skip to content

Commit 21900e0

Browse files
committed
docs: Update and add comments
1 parent d7f6f1f commit 21900e0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,8 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
957957
}
958958
else
959959
{
960-
//No GUI command mode, so deselect everyone if we're in regular mouse mode.
961960
//In alternate mouse mode, right click still cancels building placement.
961+
// TheSuperHackers @tweak Stubbjax 08/08/2025 Cancelling building placement no longer deselects the builder.
962962
if (TheInGameUI->getPendingPlaceSourceObjectID() != INVALID_ID)
963963
{
964964
TheInGameUI->placeBuildAvailable(NULL, NULL);
@@ -967,6 +967,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
967967
}
968968
else if (!TheGlobalData->m_useAlternateMouse)
969969
{
970+
//No GUI command mode, so deselect everyone if we're in regular mouse mode.
970971
deselectAll();
971972
m_lastGroupSelGroup = -1;
972973
}

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,8 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
10331033
}
10341034
else
10351035
{
1036-
//No GUI command mode, so deselect everyone if we're in regular mouse mode.
10371036
//In alternate mouse mode, right click still cancels building placement.
1037+
// TheSuperHackers @tweak Stubbjax 08/08/2025 Cancelling building placement no longer deselects the builder.
10381038
if (TheInGameUI->getPendingPlaceSourceObjectID() != INVALID_ID)
10391039
{
10401040
TheInGameUI->placeBuildAvailable(NULL, NULL);
@@ -1043,6 +1043,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
10431043
}
10441044
else if (!TheGlobalData->m_useAlternateMouse)
10451045
{
1046+
//No GUI command mode, so deselect everyone if we're in regular mouse mode.
10461047
deselectAll();
10471048
}
10481049
}

0 commit comments

Comments
 (0)