File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream
Generals/Code/GameEngine/Source/GameClient/MessageStream Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -957,10 +957,17 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
957
957
}
958
958
else
959
959
{
960
- // No GUI command mode, so deselect everyone if we're in regular mouse mode.
961
960
// In alternate mouse mode, right click still cancels building placement.
962
- if (! TheGlobalData->m_useAlternateMouse || TheInGameUI->getPendingPlaceSourceObjectID () != INVALID_ID)
961
+ // TheSuperHackers @tweak Stubbjax 08/08/2025 Cancelling building placement no longer deselects the builder.
962
+ if (TheInGameUI->getPendingPlaceSourceObjectID () != INVALID_ID)
963
+ {
964
+ TheInGameUI->placeBuildAvailable (NULL , NULL );
965
+ disp = DESTROY_MESSAGE;
966
+ TheInGameUI->setScrolling (FALSE );
967
+ }
968
+ else if (!TheGlobalData->m_useAlternateMouse )
963
969
{
970
+ // No GUI command mode, so deselect everyone if we're in regular mouse mode.
964
971
deselectAll ();
965
972
m_lastGroupSelGroup = -1 ;
966
973
}
Original file line number Diff line number Diff line change @@ -1033,10 +1033,17 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
1033
1033
}
1034
1034
else
1035
1035
{
1036
- // No GUI command mode, so deselect everyone if we're in regular mouse mode.
1037
1036
// In alternate mouse mode, right click still cancels building placement.
1038
- if (! TheGlobalData->m_useAlternateMouse || TheInGameUI->getPendingPlaceSourceObjectID () != INVALID_ID)
1037
+ // TheSuperHackers @tweak Stubbjax 08/08/2025 Cancelling building placement no longer deselects the builder.
1038
+ if (TheInGameUI->getPendingPlaceSourceObjectID () != INVALID_ID)
1039
1039
{
1040
+ TheInGameUI->placeBuildAvailable (NULL , NULL );
1041
+ disp = DESTROY_MESSAGE;
1042
+ TheInGameUI->setScrolling (FALSE );
1043
+ }
1044
+ else if (!TheGlobalData->m_useAlternateMouse )
1045
+ {
1046
+ // No GUI command mode, so deselect everyone if we're in regular mouse mode.
1040
1047
deselectAll ();
1041
1048
}
1042
1049
}
You can’t perform that action at this time.
0 commit comments