File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream
Generals/Code/GameEngine/Source/GameClient/MessageStream Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1141,6 +1141,16 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
1141
1141
Int numObjs = objlist.size ();
1142
1142
for (Int i = 0 ; i < numObjs; ++i)
1143
1143
{
1144
+ // TheSuperHackers @fix skyaero 22/07/2025
1145
+ // Check if there is a structure in the group
1146
+ // If so deselect everything to prevent group force attack exploit
1147
+ Drawable* drawObj = objlist[i]->getDrawable ();
1148
+ if (drawObj && drawObj->isKindOf (KINDOF_STRUCTURE))
1149
+ {
1150
+ TheInGameUI->deselectAllDrawables ();
1151
+ break ;
1152
+ }
1153
+
1144
1154
TheInGameUI->selectDrawable (objlist[i]->getDrawable ());
1145
1155
}
1146
1156
}
Original file line number Diff line number Diff line change @@ -1216,7 +1216,17 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
1216
1216
Int numObjs = objlist.size ();
1217
1217
for (Int i = 0 ; i < numObjs; ++i)
1218
1218
{
1219
- TheInGameUI->selectDrawable (objlist[i]->getDrawable ());
1219
+ // TheSuperHackers @fix skyaero 22/07/2025
1220
+ // Check if there is a structure in the group
1221
+ // If so deselect everything to prevent group force attack exploit
1222
+ Drawable* drawObj = objlist[i]->getDrawable ();
1223
+ if (drawObj && drawObj->isKindOf (KINDOF_STRUCTURE))
1224
+ {
1225
+ TheInGameUI->deselectAllDrawables ();
1226
+ break ;
1227
+ }
1228
+
1229
+ TheInGameUI->selectDrawable (drawObj);
1220
1230
}
1221
1231
}
1222
1232
}
You can’t perform that action at this time.
0 commit comments